/* DELIVERY7 MERCHANT REGISTRATION V2 */

.shell {
    max-width: 1250px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 26px;
}

.intro.d7-hero {
    position: relative;
    top: auto;
    padding: 30px;
    background: #111;
    border-radius: 20px;
    overflow: hidden;
}

.d7-hero h1 {
    font-size: clamp(29px, 3vw, 43px);
    line-height: 1.45;
    letter-spacing: 0;
    font-weight: 900;
    margin: 25px 0;
}

.d7-hero h1 span {
    color: #ffd400;
}

.d7-hero-image {
    overflow: hidden;
    border-radius: 15px;
    background: #222;
}

.d7-hero-image img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}

.d7-hero-footer {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 24px;
    font-size: 12px;
}

.d7-hero-footer span {
    color: #ffd400;
    font-weight: 700;
}

.card {
    padding: 30px;
}

.card h2 {
    font-size: 27px;
}

.field label {
    font-size: 12px;
}

.control {
    font-size: 13px;
}

.d7-pin-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 5px;
    width: 100%;
}

.d7-pin-boxes input {
    width: 100%;
    min-width: 0;
    height: 48px;
    padding: 0;
    border: 1px solid #d9dce1;
    border-radius: 8px;
    background: #fff;
    text-align: center;
    font-size: 19px;
    font-weight: 800;
    outline: none;
}

.d7-pin-boxes input:focus {
    border-color: #c6a700;
    box-shadow: 0 0 0 3px rgba(255,212,0,.18);
}

@media (max-width: 900px) {
    .shell {
        grid-template-columns: 1fr;
    }

    .intro.d7-hero {
        padding: 24px;
    }
}

@media (max-width: 600px) {
    .shell {
        width: calc(100% - 20px);
        gap: 16px;
    }

    .intro.d7-hero {
        padding: 20px;
    }

    .d7-hero h1 {
        font-size: 28px;
    }

    .card {
        padding: 18px;
    }

    .d7-pin-boxes input {
        height: 45px;
        font-size: 17px;
    }
}

/* APPROVED MERCHANT DESIGN — PIN ROWS */

.grid > .field:has(input[name="pin"]),
.grid > .field:has(input[name="pin_confirm"]) {
    grid-column: 1 / -1;
    padding: 16px;
    border: 1px solid #e4e7eb;
    border-radius: 13px;
    background: #f8f9fb;
}

.grid > .field:has(input[name="pin"]) {
    background: #fffbed;
    border-color: #f0d65a;
}

.d7-pin-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
    max-width: 420px;
}

.d7-pin-boxes input {
    height: 56px;
    border: 1.5px solid #d9dfe8;
    border-radius: 10px;
    background: #fff;
    font-size: 22px;
    font-weight: 800;
    box-shadow: 0 2px 5px #00000008;
}

.d7-pin-boxes input:focus {
    border-color: #e0b900;
    box-shadow: 0 0 0 3px #ffd40030;
}

.d7-hero-image img {
    aspect-ratio: 5 / 4;
    object-fit: cover;
}

@media(max-width:600px) {
    .d7-pin-boxes { gap: 6px; }
    .d7-pin-boxes input { height: 49px; }
}

/* DELIVERY7 PIN BOX VISIBILITY FIX V1 */

.d7-pin-boxes {
    display: grid !important;
    grid-template-columns: repeat(6, minmax(0, 52px)) !important;
    gap: 9px !important;
    width: 100% !important;
    max-width: 100% !important;
    justify-content: start !important;
}

.d7-pin-boxes input {
    display: block !important;
    box-sizing: border-box !important;
    width: 100% !important;
    min-width: 0 !important;
    height: 52px !important;
    min-height: 52px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1.5px solid #cbd2dc !important;
    border-radius: 10px !important;
    background: #ffffff !important;
    color: #111111 !important;
    text-align: center !important;
    font-size: 22px !important;
    font-weight: 800 !important;
    line-height: normal !important;
    box-shadow: 0 2px 5px rgba(0,0,0,.05) !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.d7-pin-boxes input:focus {
    border-color: #e0b900 !important;
    box-shadow: 0 0 0 3px rgba(255,212,0,.22) !important;
    outline: none !important;
}

@media (max-width: 600px) {
    .d7-pin-boxes {
        grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
        gap: 6px !important;
    }

    .d7-pin-boxes input {
        height: 46px !important;
        min-height: 46px !important;
        font-size: 19px !important;
    }
}

/* DELIVERY7 EXACT LOGIN STYLE PIN BOXES V2 */

.d7-pin-boxes {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    width: 100% !important;
    max-width: 100% !important;
}

.d7-pin-boxes > input,
.d7-pin-boxes > input.control {
    display: block !important;
    flex: 0 1 58px !important;
    width: 58px !important;
    min-width: 0 !important;
    max-width: 58px !important;
    height: 58px !important;
    min-height: 58px !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 1px solid #d5dbe4 !important;
    border-radius: 13px !important;
    background-color: #fff !important;
    color: #111 !important;
    text-align: center !important;
    font-size: 23px !important;
    font-weight: 700 !important;
    box-shadow: none !important;
    box-sizing: border-box !important;
    appearance: none !important;
    -webkit-appearance: none !important;
}

.d7-pin-boxes > input:focus {
    border: 2px solid #ffd400 !important;
    outline: none !important;
    box-shadow: 0 0 0 2px rgba(255,212,0,.12) !important;
}

@media(max-width:600px) {
    .d7-pin-boxes {
        gap: 7px !important;
    }

    .d7-pin-boxes > input,
    .d7-pin-boxes > input.control {
        flex: 1 1 0 !important;
        width: 0 !important;
        max-width: 58px !important;
        height: 52px !important;
        min-height: 52px !important;
        border-radius: 11px !important;
    }
}
