/* ==========================================================
   PRODUCT CARD
========================================================== */

.benoil-card{

    display:grid;

    grid-template-columns:
		210px
		minmax(0,1fr);

    gap:28px;

    align-items:center;

    width:100%;

    padding:24px 30px;

    margin-bottom:18px;

    background:#fff;

    border:1px solid #E5EAF2;

    border-radius:14px;

    transition:
        border-color .2s,
        box-shadow .2s,
        transform .2s;

    box-sizing:border-box;

}


.benoil-card:hover{

    border-color:#1D3368;

    box-shadow:0 10px 24px rgba(0,0,0,.07);

    transform:translateY(-2px);

}


/* ==========================================================
   MEDIA / SPECS COLUMN
========================================================== */

.benoil-card__media{

    display:flex;

    flex-direction:column;

    align-items:center;

    justify-content:center;

    gap:16px;

    min-width:0;

    width:100%;

}


.benoil-card__image {
    display:flex;
    justify-content:center;
    align-items:center;

    width:150px;
    height:150px;
}

.benoil-card__image img {
    display:block;

    width:140px;
    height:140px;

    object-fit:contain;
}


/* ==========================================================
   DETAILS
========================================================== */

.benoil-card__details{

    display:flex;

    flex-direction:column;

    justify-content:center;

    min-width:0;

}


.benoil-card__title{

    margin:0;

    font-size:1.75rem;

    line-height:1.2;

    font-weight:700;

    color:#1D3368;

}


.benoil-card__sku{

    margin:6px 0 20px;

    font-size:1.5rem;

    font-weight:700;

    letter-spacing:.12em;

    text-transform:uppercase;

    color:#8B96A8;

    cursor:text;

    user-select:text;

    -webkit-user-select:text;

    -moz-user-select:text;

    -ms-user-select:text;

}


/* ==========================================================
   ATTRIBUTES
========================================================== */

.benoil-card__attributes{

    display:flex;

    flex-direction:column;

    width:100%;

    gap:8px;

    min-width:0;

}


.benoil-spec{

    display:grid;

    grid-template-columns:
        1fr
        auto;

    column-gap:12px;

    align-items:center;

    width:100%;

}


.benoil-spec strong{

    font-size:13px;

    font-weight:600;

    color:#697487;

}


.benoil-spec span{

    font-size:14px;

    font-weight:600;

    color:#222;

    text-align:right;

    min-width:0;

    overflow-wrap:anywhere;

}


/* ==========================================================
   ACTIONS
========================================================== */

.benoil-card__actions{

    display:flex;

    flex-direction:column;

    justify-content:center;

    align-items:stretch;

    min-width:0;

    width:100%;

    padding-left:28px;

    border-left:1px solid #EDF2F7;

}


.cart{

    width:100%;

    display:flex;

    flex-direction:column;

    gap:16px;

}


/* ==========================================================
   QUANTITY
========================================================== */

.benoil-quantity{

    width:100%;

    display:grid;

    grid-template-columns:48px minmax(0,1fr) 48px;

    height:46px;

    border:1px solid #D7DDE8;

    border-radius:10px;

    overflow:hidden;

}


.benoil-quantity button{

    border:none;

    background:#F8FAFD;

    cursor:pointer;

    text-align:center;

    font-size:20px;

    transition:.15s;

}


.benoil-quantity button:hover{

    background:#E8EEF8;

}


.benoil-quantity button:active{

    background:#DCE5F5;

}


.benoil-quantity input{

    border:none;

    outline:none;

    text-align:center;

    font-size:16px;

    font-weight:600;

    appearance:textfield;

    -moz-appearance:textfield;

}


.benoil-quantity input::-webkit-inner-spin-button,
.benoil-quantity input::-webkit-outer-spin-button{

    -webkit-appearance:none;

    margin:0;

}


/* ==========================================================
   BUTTONS
========================================================== */

.benoil-quote-buttons{

    width:100%;

    display:flex;

    flex-direction:column;

    text-align:center;

    gap:10px;

}


.benoil-add-quote{

    width:100%;

    height:46px;

    border:none;

    border-radius:10px;

    background:#1D3368;

    color:#fff;

    font-size:15px;

    font-weight:600;

    text-align:center;

    cursor:pointer;

    transition:.2s;

}


.benoil-add-quote:hover{

    background:#29478B;

    box-shadow:0 4px 10px rgba(29,51,104,.20);

}


.benoil-view-quote{

    display:block;

    text-align:center;

    text-decoration:none;

    font-size:14px;

    font-weight:600;

    color:#1D3368;

}


.benoil-view-quote:hover{

    text-decoration:underline;

}


/* ==========================================================
   RESPONSIVE
========================================================== */
@media (max-width:1500px){

    /* YMC result grid */
    YOUR-GRID-SELECTOR {
        grid-template-columns:1fr !important;
    }

}

@media (max-width:1500px){

    .benoil-card{

        grid-template-columns:1fr;

        gap:20px;

    }

    .benoil-card__actions{

        grid-column:1 / -1;

        border-left:none;

        border-top:1px solid #EDF2F7;

        padding:18px 0 0;

    }

}


/* ==========================================================
   SMALL MOBILE
========================================================== */

@media (max-width:640px){

    .benoil-card{

        grid-template-columns:1fr;

        text-align:center;

        padding:16px 22px;

        gap:10px;

    }

    .benoil-card__media{

        align-items:center;

        gap:6px;

    }

    .benoil-card__image{

        width:100px;

        height:80px;

    }

    .benoil-card__image img{

        max-width:110px;

        max-height:110px;

    }

    .benoil-card__details{

        align-items:center;

        width:100%;

    }

    .benoil-card__attributes{

        width:100%;

    }

    .benoil-spec{

        grid-template-columns:1fr 1fr;

    }

    .benoil-spec span{

        text-align:right;

    }

    .benoil-card__actions{

        grid-column:auto;

        width:100%;

        padding:14px 0 0;

    }

}


/* ==========================================================
   GHOST / BESPOKE CARD
   Full-width configuration card with Benoil banner branding.
========================================================== */

.benoil-ghost-card {
    width: 100%;
    margin: 0 0 18px;
}

.benoil-card--ghost {
    position: relative;

    display: flex !important;
    flex-direction: column !important;

    width: 100%;
    box-sizing: border-box;

    gap: 0;
    padding: 20px 30px 28px;

    border: 1px dashed #b9c8d8;
    border-radius: 14px;

    background: linear-gradient(135deg, #fff 0%, #fbfcfe 100%);
    box-shadow: 0 5px 18px rgba(29, 51, 104, .045);
}

.benoil-card--ghost:hover {
    transform: none;
    border-color: #8fa5bd;
    box-shadow: 0 8px 24px rgba(29, 51, 104, .07);
}

/* ==========================================================
   BENOIL TOP BANNER
========================================================== */

.benoil-card--ghost .benoil-card__media {
    display: block !important;

    width: 100% !important;
    height: 132px;
    min-height: 132px;

    margin: 0 0 22px;
    padding: 0 0 22px;

    box-sizing: border-box;

    border: 0;
    border-bottom: 1px solid #e7edf3;
}

.benoil-ghost-card__image {
    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    height: 108px;

    padding: 18px 40px;
    box-sizing: border-box;

    border: 0;
    border-radius: 0;

    background: transparent;
    overflow: hidden;
}

.benoil-ghost-card__image img {
    display: block;

    width: auto;
    height: auto;

    max-width: 72%;
    max-height: 72px;

    object-fit: contain;

    padding: 0;
    box-sizing: border-box;
}

/* ==========================================================
   CONTENT
========================================================== */

.benoil-card--ghost .benoil-card__actions {
    display: flex;
    flex-direction: column;

    width: 100%;
    min-width: 0;

    padding: 0;
    margin: 0;

    border: 0;
}

.benoil-card--ghost .benoil-card__product-info {
    width: 100%;

    margin: 0 0 18px;
    padding: 0 0 14px;

    border-bottom: 1px solid #e7edf3;
}

.benoil-card--ghost .benoil-card__title {
    margin: 0;

    color: #1D3368;

    font-size: 1.35rem;
    line-height: 1.25;
    font-weight: 700;
}

.benoil-ghost-card__label {
    display: block;

    margin: 5px 0 0;

    color: #7d8999;

    font-size: .82rem;
    line-height: 1.35;
    font-weight: 500;
}

/* ==========================================================
   CONFIGURATION
========================================================== */

.benoil-card--ghost .benoil-ghost-config {
    display: grid;

    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 14px 18px;

    width: 100%;
    margin: 0 0 20px;
}

.benoil-card--ghost .benoil-ghost-field {
    min-width: 0;
}

.benoil-card--ghost .benoil-ghost-field label {
    display: block;

    margin: 0 0 6px;

    color: #1D3368;

    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
}

.benoil-card--ghost .benoil-ghost-field select,
.benoil-card--ghost .benoil-ghost-custom-input {
    width: 100%;
    min-height: 44px;

    padding: 9px 12px;
    box-sizing: border-box;

    border: 1px solid #cbd7e3;
    border-radius: 7px;

    background: #fff;
    color: #1D3368;

    font: inherit;
    font-size: 14px;
    line-height: 1.3;

    transition: border-color .18s, box-shadow .18s, background .18s;
}

.benoil-card--ghost .benoil-ghost-field select {
    padding-right: 36px;
    cursor: pointer;
}

.benoil-card--ghost .benoil-ghost-field select:hover,
.benoil-card--ghost .benoil-ghost-custom-input:hover {
    border-color: #9fb2c6;
}

.benoil-card--ghost .benoil-ghost-field select:focus,
.benoil-card--ghost .benoil-ghost-custom-input:focus {
    border-color: #0066b4;
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 102, 180, .11);
}

.benoil-card--ghost .benoil-ghost-custom {
    margin-top: 8px;
}

.benoil-card--ghost .benoil-ghost-custom[hidden] {
    display: none;
}

.benoil-card--ghost .benoil-ghost-custom-input {
    background: #fbfdff;
}

/* ==========================================================
   PRIMARY ACTION
========================================================== */

.benoil-card--ghost .benoil-quote-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    margin: 0;
}

.benoil-card--ghost .benoil-add-bespoke {
    appearance: none;
    -webkit-appearance: none;

    display: flex;
    align-items: center;
    justify-content: center;

    width: 100%;
    min-height: 46px;

    padding: 10px 18px;

    border: 1px solid #1D3368;
    border-radius: 7px;

    background: #1D3368;
    color: #fff;

    font: inherit;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .01em;

    cursor: pointer;

    transition: background .18s, border-color .18s, transform .18s, box-shadow .18s;
}

.benoil-card--ghost .benoil-add-bespoke:hover {
    background: #15264e;
    border-color: #15264e;
    box-shadow: 0 5px 14px rgba(29, 51, 104, .16);
}

.benoil-card--ghost .benoil-add-bespoke:active {
    transform: translateY(1px);
}

.benoil-card--ghost .benoil-add-bespoke:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(29, 51, 104, .18);
}

.benoil-card--ghost .benoil-view-quote {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 9px 12px;
    color: #1D3368;
    background: transparent;
    border: 1px solid #1D3368;
    border-radius: 7px;
    text-align: center;
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
    transition: background .18s, color .18s, box-shadow .18s;
}

.benoil-card--ghost .benoil-view-quote:hover {
    background: #1D3368;
    color: #fff;
    text-decoration: none;
    box-shadow: 0 5px 14px rgba(29, 51, 104, .12);
}

.benoil-ghost-no-results-hidden {
    display: none !important;
}

/* ==========================================================
   RESPONSIVE
========================================================== */

@media (max-width: 640px) {
    .benoil-card--ghost {
        padding: 16px 18px 22px;
    }

    .benoil-card--ghost .benoil-card__media {
        height: 112px;
        min-height: 112px;
        margin-bottom: 18px;
        padding-bottom: 18px;
    }

    .benoil-ghost-card__image {
        height: 94px;
        padding: 14px 24px;
    }

    .benoil-ghost-card__image img {
        max-width: 82%;
        max-height: 62px;
    }

    .benoil-card--ghost .benoil-ghost-config {
        grid-template-columns: 1fr;
        gap: 13px;
    }
}

