/* تنبيه اختيار السمات — يوجّه العميل لمكان الخيارات */
.ahlmall-attr-notice {
    display: none;
    position: relative;
    margin: 0 0 14px;
    padding: 14px 42px 14px 16px;
    border-radius: 12px;
    border: 2px solid var(--color-1st, #fd6a00);
    background: linear-gradient(135deg, #fff8f0 0%, #fff3e6 100%);
    box-shadow: 0 10px 28px rgba(253, 106, 0, 0.18);
    color: #1f2937;
    animation: ahlmall-attr-notice-in 0.35s ease;
}

.ahlmall-attr-notice.is-visible {
    display: block;
}

@keyframes ahlmall-attr-notice-in {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ahlmall-attr-notice::after {
    content: "";
    position: absolute;
    left: 28px;
    bottom: -12px;
    width: 0;
    height: 0;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    border-top: 12px solid var(--color-1st, #fd6a00);
    filter: drop-shadow(0 2px 2px rgba(253, 106, 0, 0.15));
}

[dir="rtl"] .ahlmall-attr-notice::after {
    left: auto;
    right: 28px;
}

.ahlmall-attr-notice__icon {
    position: absolute;
    top: 14px;
    left: 14px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--color-1st, #fd6a00);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    line-height: 1;
}

[dir="rtl"] .ahlmall-attr-notice__icon {
    left: auto;
    right: 14px;
}

.ahlmall-attr-notice__title {
    display: block;
    margin: 0 0 4px;
    padding-inline-start: 36px;
    font-size: 15px;
    font-weight: 800;
    color: #9a3412;
}

.ahlmall-attr-notice__text {
    margin: 0;
    padding-inline-start: 36px;
    font-size: 13px;
    line-height: 1.5;
    color: #4b5563;
}

.ahlmall-attr-notice__close {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: none;
    border-radius: 8px;
    background: rgba(253, 106, 0, 0.12);
    color: #9a3412;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

[dir="rtl"] .ahlmall-attr-notice__close {
    right: auto;
    left: 8px;
}

.product-attributes-required.ahlmall-attr-focus {
    position: relative;
    border-radius: 14px;
    outline: 3px solid rgba(253, 106, 0, 0.55);
    outline-offset: 6px;
    box-shadow: 0 0 0 6px rgba(253, 106, 0, 0.12);
    animation: ahlmall-attr-focus-pulse 1.1s ease 4;
}

@keyframes ahlmall-attr-focus-pulse {
    0%,
    100% {
        box-shadow: 0 0 0 6px rgba(253, 106, 0, 0.12);
    }
    50% {
        box-shadow: 0 0 0 10px rgba(253, 106, 0, 0.22);
    }
}

.product-attributes .attribute-swatches-wrapper.ahlmall-attr-missing {
    outline: none;
    background: transparent;
}

.product-attributes .ahlmall-pdp-axis.ahlmall-attr-missing .ahlmall-pdp-axis__label::after,
.product-attributes .attribute-swatches-wrapper.ahlmall-attr-missing .attribute-name::after {
    content: " *";
    color: #dc2626;
    font-weight: 800;
}

@keyframes ahlmall-attr-missing-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-4px);
    }
    75% {
        transform: translateX(4px);
    }
}

html.ahlmall-dark-mode .ahlmall-attr-notice {
    background: linear-gradient(135deg, rgb(55, 56, 58) 0%, rgb(47, 48, 49) 100%);
    border-color: var(--color-1st, #fd6a00);
    color: #e4e6eb;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

html.ahlmall-dark-mode .ahlmall-attr-notice__title {
    color: #fdba74;
}

html.ahlmall-dark-mode .ahlmall-attr-notice__text {
    color: #b0b3b8;
}

html.ahlmall-dark-mode .product-attributes .attribute-swatches-wrapper.ahlmall-attr-missing {
    background: rgba(127, 29, 29, 0.25);
}

@media (max-width: 575px) {
    .ahlmall-attr-notice {
        padding: 12px 38px 12px 12px;
    }

    .ahlmall-attr-notice__title {
        font-size: 14px;
    }
}
