﻿
.store-complete-field .input-group {
    display: flex;
    width: 100%;
}

    .store-complete-field .input-group .input-group-addon {
        min-width: 86px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        border-radius: 16px 0 0 16px;
        background: #f8fafc;
        border: 1px solid #d7deea;
        border-inline-end: 0;
        color: #57657a;
        font-weight: 700;
    }

html[dir="rtl"] .store-complete-field .input-group .input-group-addon {
    border-radius: 0 16px 16px 0;
    border-inline-end: 1px solid #d7deea;
    border-inline-start: 0;
}

.store-form-input {
    min-height: 52px;
    border-radius: 16px;
    border: 1px solid #d7deea;
    padding: 0 16px;
    box-shadow: none;
}

.store-complete-field .input-group .store-form-input {
    border-radius: 0 16px 16px 0;
}

html[dir="rtl"] .store-complete-field .input-group .store-form-input {
    border-radius: 16px 0 0 16px;
}


.store-profile-shell {
    display: grid;
    gap: 20px;
}

.store-profile-layout {
    align-items: start;
    display: grid;
    gap: 24px;
    grid-template-columns: minmax(0, 1fr) 320px;
}

.store-profile-main,
.store-profile-sidebar {
    min-width: 0;
}

.store-profile-sidebar {
    display: grid;
    gap: 20px;
}

.store-profile-form {
    display: grid;
    gap: 20px;
}

.store-profile-panel,
.store-profile-side-panel {
    border: 1px solid #ebeff3;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.05);
    overflow: hidden;
}

    .store-profile-panel .panel-heading,
    .store-profile-side-panel .panel-heading {
        background: linear-gradient(180deg, rgba(115, 90, 6, 0.07), rgba(18, 97, 68, 0.02));
        border-bottom: 1px solid #edf1f5;
        padding: 18px 22px;
    }

    .store-profile-panel .panel-title,
    .store-profile-side-panel .panel-title {
        color: #26303f;
        display: flex;
        align-items: center;
        gap: 10px;
        font-size: 17px;
        font-weight: 900;
        margin: 0;
    }

    .store-profile-panel .panel-body,
    .store-profile-side-panel .panel-body {
        padding: 20px 22px 24px;
    }

.store-profile-fields {
    display: grid;
    gap: 16px;
}

.store-profile-field {
    min-width: 0;
}

    .store-profile-field .form-group {
        margin: 10px;
    }

.store-profile-fields + .store-profile-fields {
    margin-top: 16px;
}

.store-profile-fields--identity,
.store-profile-fields--location {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1.35fr) minmax(220px, 1fr);
}

.store-profile-fields--account {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-profile-alert {
    margin-bottom: 18px;
}

.store-profile-readonly {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
}

.store-profile-avatar-card {
    background: linear-gradient(180deg, rgba(115, 90, 6, 0.08), rgba(18, 97, 68, 0.03));
    border: 1px solid rgba(115, 90, 6, 0.12);
    border-radius: 22px;
    display: flex;
    justify-content: center;
    padding: 20px;
}

    .store-profile-avatar-card img {
        background: #fff;
        border: 1px solid rgba(115, 90, 6, 0.12);
        border-radius: 22px;
        height: 220px;
        object-fit: cover;
        padding: 10px;
        width: 100%;
    }

.store-profile-links {
    display: grid;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

    .store-profile-links li {
        margin: 0;
    }

    .store-profile-links a {
        align-items: center;
        background: #f8fafc;
        border: 1px solid #edf1f5;
        border-radius: 16px;
        color: #334155;
        display: flex;
        gap: 10px;
        font-size: 14px;
        font-weight: 800;
        min-height: 48px;
        padding: 0 16px;
        text-decoration: none;
        transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    }

        .store-profile-links a:hover,
        .store-profile-links a:focus {
            background: rgba(115, 90, 6, 0.08);
            border-color: rgba(115, 90, 6, 0.22);
            color: var(--store-primary);
            outline: none;
            text-decoration: none;
            transform: translateY(-1px);
        }

    .store-profile-links .is-active a {
        background: linear-gradient(135deg, rgba(115, 90, 6, 0.16), rgba(18, 97, 68, 0.08));
        border-color: rgba(115, 90, 6, 0.25);
        color: var(--store-primary);
    }

.store-profile-actions {
    display: flex;
    justify-content: center;
    margin: 24px 10px 24px 10px;
}

.store-profile-submit {
    border-radius: 999px;
    font-size: 15px;
    font-weight: 900;
    min-height: 50px;
    min-width: 220px;
    padding: 0 26px;
}

@media screen and (max-width: 1199px) {
    .store-profile-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
    }

    .store-profile-fields--identity,
    .store-profile-fields--location {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

        .store-profile-fields--identity .store-profile-field:last-child,
        .store-profile-fields--location .store-profile-field:last-child {
            grid-column: 1 / -1;
        }
}

@media screen and (max-width: 991px) {
    .legacy-checkout-page .store-checkout-layout {
        grid-template-columns: 1fr;
    }

    .legacy-checkout-page .store-checkout-summary {
        order: -1;
    }
}

@media screen and (max-width: 767px) {
    .store-profile-layout {
        gap: 18px;
        grid-template-columns: 1fr;
    }

    .store-profile-side-panel {
        margin-top: 0;
    }

        .store-profile-panel .panel-body,
        .store-profile-side-panel .panel-body {
            padding: 16px 16px 20px;
        }

    .store-profile-fields--identity,
    .store-profile-fields--location,
    .store-profile-fields--account {
        grid-template-columns: 1fr;
    }

    .store-profile-avatar-card img {
        height: 180px;
    }

    .store-profile-links a {
        min-height: 44px;
        padding: 0 14px;
    }

    .store-checkout-store-info {
        margin-top: 22px;
    }

    .store-checkout-store-info__inner {
        align-items: flex-start;
    }

    .store-checkout-store-info .store-info__logo {
        width: 72px;
        height: 72px;
    }

        .store-checkout-store-info .store-info__logo img {
            max-width: 58px;
            max-height: 52px;
        }

    .store-checkout-store-info .store-info__detail h1 {
        font-size: 19px;
    }

    .legacy-checkout-page .store-checkout-type-switch,
    .legacy-checkout-page .store-checkout-address-list,
    .legacy-checkout-page .store-checkout-options--payments,
    .legacy-checkout-page .store-checkout-form-grid {
        grid-template-columns: 1fr;
    }

    .legacy-checkout-page .payment-step,
    .legacy-checkout-page .shipping-address-redirect,
    .legacy-checkout-page .store-checkout-shipping-fieldset,
    .legacy-checkout-page #payment_step,
    .legacy-checkout-page #cart_note {
        padding: 16px;
    }
}
