/* EU Warranty Notice Shortcode Styling */

.bts-warranty-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
    margin: 10px 0;
    user-select: none;
    text-decoration: none !important;
    color: inherit;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.bts-warranty-card:hover {
    border-color: #cbd5e1;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.06);
}

.bts-warranty-card:focus-visible {
    outline: 2px solid #0284c7;
    outline-offset: 2px;
}

.bts-warranty-thumb-wrap {
    flex-shrink: 0;
    width: 36px;
    height: 46px;
    border: 1px solid #e2e8f0;
    border-radius: 3px;
    overflow: hidden;
    background: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.bts-warranty-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    image-rendering: -webkit-optimize-contrast;
}

.bts-warranty-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.bts-warranty-title {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.25;
    margin: 0;
}

.bts-warranty-subtitle {
    font-size: 12.5px;
    font-weight: 500;
    color: #0284c7;
    line-height: 1.35;
    margin: 0;
    display: inline-flex;
    align-items: center;
}

.bts-warranty-arrow {
    flex-shrink: 0;
    margin-left: auto;
    color: #0284c7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.bts-warranty-arrow svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    fill: none;
    transition: transform 0.2s ease;
}

.bts-warranty-card:hover .bts-warranty-arrow svg {
    transform: translateX(3px);
}

/* Modal Overlay & Dialog */
.bts-warranty-modal-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(4px);
    z-index: 999999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s ease;
    padding: 16px;
    box-sizing: border-box;
}

.bts-warranty-modal-overlay.is-active {
    opacity: 1;
    visibility: visible;
}

.bts-warranty-modal-container {
    position: relative;
    width: 100%;
    max-width: 520px;
    max-height: calc(82vh - 40px);
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
    transform: scale(0.94) translateY(10px);
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.bts-warranty-modal-overlay.is-active .bts-warranty-modal-container {
    transform: scale(1) translateY(0);
}

.bts-warranty-modal-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #ffffff;
    border: 1px solid #cbd5e1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    color: #475569;
    padding: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
    transition: background-color 0.2s, color 0.2s, transform 0.15s ease;
}

.bts-warranty-modal-close:hover {
    background-color: #f1f5f9;
    color: #0f172a;
    transform: scale(1.05);
}

.bts-warranty-modal-close svg {
    width: 14px;
    height: 14px;
    stroke: currentColor;
    stroke-width: 2.5;
    stroke-linecap: round;
    fill: none;
}

.bts-warranty-modal-body {
    overflow: hidden;
    width: 100%;
    height: 100%;
    max-height: calc(82vh - 40px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.bts-warranty-modal-img {
    max-width: 100%;
    max-height: calc(82vh - 40px);
    width: auto;
    height: auto;
    display: block;
    object-fit: contain;
    margin: 0 auto;
}

.bts-warranty-modal-footer-link {
    margin-top: 14px;
    color: #ffffff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    opacity: 0.9;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.bts-warranty-modal-footer-link:hover {
    opacity: 1;
    color: #ffffff;
    text-decoration: underline;
    transform: translateY(-1px);
}

body.bts-warranty-modal-open {
    overflow: hidden !important;
}

@media (max-width: 640px) {
    .bts-warranty-card {
        padding: 12px 14px;
        gap: 12px;
    }
    .bts-warranty-title {
        font-size: 14px;
    }
    .bts-warranty-subtitle {
        font-size: 12px;
    }
    .bts-warranty-thumb-wrap {
        width: 38px;
        height: 50px;
    }
    .bts-warranty-modal-container {
        max-height: 90vh;
    }
}
