.jds-ty-order,
.jds-ty-coupon,
.jds-ty-related {
    direction: rtl;
    font-family: inherit;
}

.jds-ty-order {
    border-radius: 20px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.08);
    animation: jds-ty-fade-up 0.5s ease both;
}

.jds-ty-order__header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 28px 24px 20px;
    background: linear-gradient(135deg, #0f3460 0%, #16213e 100%);
    color: #fff;
}

.jds-ty-order__icon {
    font-size: 36px;
    animation: jds-ty-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both;
}

.jds-ty-order__title {
    margin: 0 0 4px;
    font-size: 20px;
    font-weight: 800;
    color: #fff;
}

.jds-ty-order__num {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.jds-ty-order__items {
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.jds-ty-order__item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px;
    border-radius: 12px;
    background: #f8f9fb;
    animation: jds-ty-fade-up 0.4s ease both;
}

.jds-ty-order__item:nth-child(2) {
    animation-delay: 0.05s;
}

.jds-ty-order__item:nth-child(3) {
    animation-delay: 0.10s;
}

.jds-ty-order__item:nth-child(4) {
    animation-delay: 0.15s;
}

.jds-ty-order__item-img img,
.jds-ty-order__item-placeholder {
    width: 56px;
    height: 56px;
    border-radius: 10px;
    object-fit: cover;
    flex-shrink: 0;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.jds-ty-order__item-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.jds-ty-order__item-name {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.jds-ty-order__item-qty {
    font-size: 12px;
    color: #94a3b8;
}

.jds-ty-order__item-price {
    font-size: 14px;
    font-weight: 700;
    color: #0f3460;
    white-space: nowrap;
}

.jds-ty-order__totals {
    margin: 0 24px 24px;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #e8ecf2;
}

.jds-ty-order__total-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: #374151;
}

.jds-ty-order__total-row:not(:last-child) {
    border-bottom: 1px solid #e8ecf2;
}

.jds-ty-order__total-row strong {
    font-size: 16px;
    color: #0f3460;
}

.jds-ty-coupon {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
    box-shadow: 0 8px 32px rgba(15, 52, 96, 0.3);
    animation: jds-ty-fade-up 0.5s ease 0.1s both;
}

.jds-ty-coupon__glow {
    position: absolute;
    top: -50%;
    left: -20%;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(251, 191, 36, 0.3) 0%, transparent 70%);
    filter: blur(12px);
    animation: jds-ty-glow-pulse 3.5s ease-in-out infinite;
    pointer-events: none;
}

.jds-ty-coupon__inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 24px;
    flex-wrap: wrap;
}

.jds-ty-coupon__icon {
    font-size: 38px;
    flex-shrink: 0;
    animation: jds-ty-pop 0.7s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s both;
}

.jds-ty-coupon__info {
    flex: 1;
    min-width: 140px;
}

.jds-ty-coupon__title {
    margin: 0 0 4px;
    font-size: 16px;
    font-weight: 800;
    color: #fbbf24;
}

.jds-ty-coupon__desc {
    margin: 0;
    font-size: 13px;
    color: rgba(255, 255, 255, 0.75);
}

.jds-ty-coupon__code-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.1);
    border: 1px dashed rgba(255, 255, 255, 0.3);
    border-radius: 12px;
    padding: 10px 16px;
    backdrop-filter: blur(4px);
}

.jds-ty-coupon__code {
    font-size: 18px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 2px;
    font-family: monospace;
}

.jds-ty-coupon__copy {
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 8px;
    padding: 6px 8px;
    cursor: pointer;
    color: #fff;
    display: flex;
    align-items: center;
    transition: background 0.2s, transform 0.15s;
}

.jds-ty-coupon__copy:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: scale(1.1);
}

.jds-ty-coupon__copy.copied {
    background: rgba(74, 222, 128, 0.3);
    animation: jds-ty-pop 0.3s ease;
}

.jds-ty-related {
    animation: jds-ty-fade-up 0.5s ease 0.15s both;
}

.jds-ty-related__title {
    font-size: 18px;
    font-weight: 800;
    color: #1e293b;
    margin: 0 0 20px;
}

.jds-ty-related__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.jds-ty-related__card {
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    animation: jds-ty-fade-up 0.4s ease both;
}

.jds-ty-related__card:nth-child(2) {
    animation-delay: 0.05s;
}

.jds-ty-related__card:nth-child(3) {
    animation-delay: 0.10s;
}

.jds-ty-related__card:nth-child(4) {
    animation-delay: 0.15s;
}

.jds-ty-related__card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12);
}

.jds-ty-related__img-link {
    position: relative;
    display: block;
    overflow: hidden;
}

.jds-ty-related__img-link img {
    width: 100%;
    aspect-ratio: 1;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.jds-ty-related__card:hover .jds-ty-related__img-link img {
    transform: scale(1.06);
}

.jds-ty-related__sale-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: linear-gradient(135deg, #ef4444, #f97316);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    border-radius: 999px;
}

.jds-ty-related__body {
    padding: 14px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.jds-ty-related__name {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
}

.jds-ty-related__name a {
    color: #1e293b;
    text-decoration: none;
}

.jds-ty-related__name a:hover {
    color: #0f3460;
}

.jds-ty-related__excerpt {
    margin: 0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}

.jds-ty-related__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: 4px;
}

.jds-ty-related__price {
    font-size: 14px;
    font-weight: 700;
    color: #0f3460;
}

.jds-ty-related__atc,
.jds-ty-related__view {
    font-size: 12px;
    font-weight: 700;
    padding: 7px 14px;
    border-radius: 999px;
    border: none;
    cursor: pointer;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    white-space: nowrap;
}

.jds-ty-related__atc {
    background: linear-gradient(135deg, #0f3460, #1a5276);
    color: #fff;
}

.jds-ty-related__view {
    background: #f1f5f9;
    color: #374151;
}

.jds-ty-related__atc:hover,
.jds-ty-related__view:hover {
    opacity: 0.85;
    transform: scale(1.04);
}

.jds-ty-related__atc.loading {
    opacity: 0.6;
    pointer-events: none;
}

.jds-ty-related__atc.added {
    background: linear-gradient(135deg, #059669, #10b981);
    animation: jds-ty-pop 0.3s ease;
}

@keyframes jds-ty-fade-up {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes jds-ty-pop {
    0% {
        transform: scale(0.5);
        opacity: 0;
    }

    60% {
        transform: scale(1.15);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes jds-ty-glow-pulse {

    0%,
    100% {
        opacity: 0.5;
        transform: scale(1);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

#jds-ty-confetti {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 9999;
}

@media (max-width: 480px) {
    .jds-ty-coupon__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .jds-ty-related__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .jds-ty-order__header {
        padding: 20px 16px;
    }

    .jds-ty-order__items {
        padding: 12px 16px;
    }

    .jds-ty-order__totals {
        margin: 0 16px 16px;
    }
}