/* Cart, checkout, orders and domain settings. */

.shop {
    max-width: 56rem;
    margin: 0 auto;
    padding: 2rem 0 4rem;
    color: #0b1f4d;
}

    .shop h1 {
        margin: 0 0 1.25rem;
        font-size: clamp(1.6rem, 3.5vw, 2.2rem);
        font-weight: 800;
    }

    .shop h2 {
        margin: 0 0 0.9rem;
        font-size: 1.25rem;
        font-weight: 800;
    }

    .shop h3 {
        margin: 1.5rem 0 0.6rem;
        font-size: 1.05rem;
        font-weight: 700;
    }

    .shop a {
        color: #1d4ed8;
    }

.shop-step {
    margin: 0 0 1.5rem;
    padding: 1.5rem;
    border: 1px solid #dbe4f5;
    border-radius: 12px;
    background: #ffffff;
}

    .shop-step h2 + h2,
    .shop-step .shop-fields + h2 {
        margin-top: 1.75rem;
    }

.shop-empty,
.shop-hint,
.shop-muted {
    color: #475569;
}

.shop-hint {
    font-size: 0.92rem;
}

.shop-domain {
    font-weight: 700;
    overflow-wrap: anywhere;
}

.shop-flash,
.shop-notice {
    margin: 0 0 1.25rem;
    padding: 0.75rem 1rem;
    border-left: 5px solid;
    border-radius: 8px;
    font-weight: 600;
}

.shop-flash-ok {
    border-color: #15803d;
    background: #dcfce7;
    color: #14532d;
}

.shop-flash-error {
    border-color: #b91c1c;
    background: #fee2e2;
    color: #7f1d1d;
}

.shop-notice {
    border-color: #b45309;
    background: #fef3c7;
    color: #78350f;
    font-weight: 500;
}

.shop-pay p {
    margin: 0 0 0.75rem;
}

.shop-badge {
    display: inline-block;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    background: #fef3c7;
    color: #78350f;
    font-size: 0.85rem;
    font-weight: 700;
}

.shop-badge-ok {
    background: #dcfce7;
    color: #14532d;
}

/* Tables */

.shop-table-scroll {
    overflow-x: auto;
}

.shop-table {
    width: 100%;
    border-collapse: collapse;
}

    .shop-table th,
    .shop-table td {
        padding: 0.7rem 0.75rem;
        border-bottom: 1px solid #dbe4f5;
        text-align: left;
        vertical-align: middle;
    }

    .shop-table thead th {
        color: #475569;
        font-size: 0.85rem;
        font-weight: 700;
    }

    .shop-table tbody th {
        font-weight: 700;
    }

    .shop-table tfoot th,
    .shop-table tfoot td {
        border-bottom: 0;
        font-weight: 600;
    }

    /* A name breaks only when it is longer than this; the table scrolls sideways before that. */
    .shop-table .shop-domain {
        min-width: 11rem;
    }

    .shop-table .shop-num {
        text-align: right;
        white-space: nowrap;
    }

.shop-total {
    font-size: 1.15rem;
    font-weight: 800;
}

/* Buttons */

.shop-btn {
    display: inline-block;
    padding: 0.6rem 1.2rem;
    border: 2px solid #1d4ed8;
    border-radius: 8px;
    background: #ffffff;
    color: #1d4ed8;
    font: inherit;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
}

    .shop-btn:hover {
        background: #eff6ff;
    }

.shop .shop-btn-primary {
    background: #1d4ed8;
    color: #ffffff;
}

    .shop .shop-btn-primary:hover {
        border-color: #003399;
        background: #003399;
    }

.shop .shop-btn-danger {
    border-color: #b91c1c;
    color: #b91c1c;
}

    .shop .shop-btn-danger:hover {
        background: #fee2e2;
    }

.shop-btn-small {
    padding: 0.3rem 0.75rem;
    border-width: 1px;
    font-size: 0.9rem;
}

.shop-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin: 1.25rem 0 0;
}

.shop-inline {
    display: inline;
    margin: 0;
}

/* Forms */

.shop form {
    margin: 0 0 1rem;
}

.shop-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 0.9rem 1.25rem;
}

.shop-field {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    font-weight: 600;
}

    .shop-field small {
        color: #475569;
        font-weight: 400;
    }

    .shop-field input,
    .shop-field select {
        width: 100%;
        padding: 0.55rem 0.7rem;
        border: 1px solid #94a3b8;
        border-radius: 8px;
        background: #ffffff;
        color: #0b1f4d;
        font: inherit;
        font-weight: 400;
    }

    .shop-field input:disabled {
        border-color: #cbd5e1;
        background: #f1f5f9;
        color: #94a3b8;
        cursor: not-allowed;
    }

    .shop-field:has(input:disabled) > span {
        color: #94a3b8;
    }

.shop-row {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.75rem 1rem;
}

    .shop-row .shop-field {
        flex: 1 1 16rem;
    }

.shop-row-tight .shop-field {
    flex: 0 1 auto;
}

.shop .shop-code {
    max-width: 12rem;
    font-size: 1.3rem;
    letter-spacing: 0.3em;
}

.shop-fieldset {
    margin: 0;
    padding: 0;
    border: 0;
}

.shop-choice {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    margin: 0 0 0.75rem;
    padding: 0.8rem 1rem;
    border: 1px solid #dbe4f5;
    border-radius: 10px;
    cursor: pointer;
}

    .shop-choice input {
        flex: none;
        width: 1.15rem;
        height: 1.15rem;
        margin-top: 0.2rem;
    }

    .shop-choice small {
        color: #475569;
    }

    .shop-choice:has(input:checked) {
        border-color: #1d4ed8;
        background: #eff6ff;
    }

.shop-choice-plain,
.shop-choice-plain:has(input:checked) {
    padding: 0;
    border: 0;
    background: none;
}

.shop-fieldset:disabled .shop-choice {
    cursor: default;
}

.shop-fields + .shop-choice,
.shop-fields + .shop-hint {
    margin-top: 1rem;
}

/* Contacts */

.shop-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
    gap: 1rem;
}

.shop-card {
    padding: 1rem 1.1rem;
    border: 1px solid #dbe4f5;
    border-radius: 10px;
}

    .shop-card h3 {
        margin-top: 0;
    }

.shop-address {
    margin: 0 0 0.75rem;
    font-style: normal;
    line-height: 1.5;
    overflow-wrap: anywhere;
}

.shop-visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
