.sip-find-store {
    display: inline-block;
}

.sip-fis-button {
    appearance: none;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #0f766e 0%, #0e7490 100%);
    color: #ffffff;
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.2;
    padding: 14px 22px;
    box-shadow: 0 18px 40px rgba(15, 118, 110, 0.18);
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.sip-fis-button:hover,
.sip-fis-button:focus {
    background: linear-gradient(135deg, #0e7490 0%, #0f766e 100%);
    box-shadow: 0 22px 48px rgba(15, 118, 110, 0.24);
    transform: translateY(-1px);
}

.sip-fis-modal {
    align-items: center;
    display: none;
    inset: 0;
    justify-content: center;
    padding: 24px;
    position: fixed;
    z-index: 999999;
}

.sip-fis-modal.is-open {
    display: flex;
}

.sip-fis-backdrop {
    background: rgba(15, 23, 42, 0.72);
    backdrop-filter: blur(4px);
    inset: 0;
    position: absolute;
}

.sip-fis-dialog {
    background: #ffffff;
    border-radius: 28px;
    border: 1px solid rgba(148, 163, 184, 0.2);
    box-shadow: 0 36px 80px rgba(15, 23, 42, 0.14);
    max-height: calc(100vh - 48px);
    max-width: 980px;
    overflow: auto;
    padding: 30px;
    position: relative;
    width: min(980px, 100%);
}

.sip-fis-close {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    color: #0f172a;
    cursor: pointer;
    display: flex;
    font-size: 22px;
    height: 38px;
    justify-content: center;
    line-height: 1;
    position: absolute;
    right: 18px;
    top: 18px;
    width: 38px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.sip-fis-close:hover {
    background: #e2e8f0;
    transform: scale(1.04);
}

.sip-fis-grid {
    display: grid;
    gap: 30px;
    grid-template-columns: minmax(260px, 0.95fr) minmax(300px, 1.05fr);
}

.sip-fis-product {
    min-width: 0;
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    padding: 26px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.sip-fis-image-wrap {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 22px;
    overflow: hidden;
}

.sip-fis-product-image {
    aspect-ratio: 1 / 1;
    display: block;
    height: auto;
    object-fit: cover;
    width: 100%;
}

.sip-fis-title {
    color: #0f172a;
    font-size: 26px;
    font-weight: 800;
    line-height: 1.15;
    margin: 0;
}

.sip-fis-price {
    color: #134e4a;
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.sip-fis-sku {
    color: #334155;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.02em;
    background: #e0f2fe;
    border-radius: 999px;
    display: inline-flex;
    padding: 8px 14px;
}

.sip-fis-sizes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.sip-fis-size {
    appearance: none;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 16px;
    color: #334155;
    cursor: pointer;
    font-size: 13px;
    font-weight: 700;
    min-height: 42px;
    padding: 10px 16px;
    transition: all 0.2s ease;
}

.sip-fis-size:hover {
    border-color: #94a3b8;
}

.sip-fis-size.is-active {
    background: #0f766e;
    border-color: #0f766e;
    color: #ffffff;
    box-shadow: 0 14px 30px rgba(15, 118, 110, 0.18);
}

.sip-fis-stock {
    background: #ffffff;
    border-radius: 24px;
    border: 1px solid #e2e8f0;
    padding: 26px;
}

.sip-fis-stock-head {
    align-items: flex-start;
    display: flex;
    gap: 20px;
    justify-content: space-between;
    margin-bottom: 24px;
}

.sip-fis-stock-head h4 {
    color: #0f172a;
    font-size: 20px;
    font-weight: 800;
    line-height: 1.2;
    margin: 0;
}

.sip-fis-total {
    background: #ecfdf5;
    border-radius: 999px;
    color: #166534;
    flex: 0 0 auto;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 14px;
}

.sip-fis-stock-list {
    display: grid;
    gap: 16px;
}

.sip-fis-outlet {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 22px;
    padding: 20px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sip-fis-outlet:hover {
    transform: translateY(-1px);
    box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.sip-fis-outlet-top {
    align-items: flex-start;
    display: flex;
    gap: 16px;
    justify-content: space-between;
}

.sip-fis-outlet-name {
    color: #0f172a;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
    margin: 0 0 6px;
}

.sip-fis-location,
.sip-fis-phone,
.sip-fis-variants {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

.sip-fis-qty {
    border-radius: 999px;
    font-size: 13px;
    font-weight: 800;
    padding: 9px 14px;
    min-width: 110px;
    text-align: center;
}

.sip-fis-qty.is-available {
    background: #dcfce7;
    color: #166534;
}

.sip-fis-qty.is-empty {
    background: #f1f5f9;
    color: #475569;
}

.sip-fis-empty {
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 22px;
    color: #64748b;
    font-size: 14px;
    margin: 0;
    padding: 24px;
    text-align: center;
}

body.sip-fis-lock {
    overflow: hidden;
}

@media (max-width: 820px) {
    .sip-fis-dialog {
        border-radius: 24px;
        max-height: 88vh;
        padding: 22px;
    }

    .sip-fis-grid {
        grid-template-columns: 1fr;
    }

    .sip-fis-product,
    .sip-fis-stock {
        padding: 20px;
    }

    .sip-fis-image-wrap {
        margin: 0 auto;
        max-width: 280px;
    }
}
