.cjd-action-box {
    margin: 0 0 2rem;
    padding: clamp(1.1rem, 3vw, 1.65rem);
    border: 1px solid #d7e4ff;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
    box-shadow: 0 12px 30px rgba(32, 77, 147, 0.1);
}

.cjd-action-title {
    margin: 0 0 0.85rem;
    color: #102a56;
    font-size: clamp(1.2rem, 3.6vw, 1.55rem);
    font-weight: 900;
    line-height: 1.35;
    text-align: center;
}

.cjd-action-guide {
    margin: 0 0 0.7rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
    color: #1d4f91;
    text-align: center;
}

.cjd-action-guide span {
    display: inline-block;
    margin-right: 0.3rem;
    font-size: 1.3em;
    animation: cjd-action-bounce 1.4s ease-in-out infinite;
}

.cjd-action-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    width: 100%;
    min-height: 62px;
    padding: 0.95rem 1.2rem;
    border-radius: 14px;
    background: #165dce;
    color: #fff !important;
    font-size: clamp(1.15rem, 3.8vw, 1.55rem);
    font-weight: 900;
    line-height: 1.3;
    text-align: center;
    text-decoration: none !important;
    box-shadow: 0 8px 18px rgba(22, 93, 206, 0.24);
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.cjd-action-button:hover,
.cjd-action-button:focus-visible {
    background: #0f4fae;
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(22, 93, 206, 0.3);
}

.cjd-action-button:focus-visible {
    outline: 3px solid rgba(22, 93, 206, 0.28);
    outline-offset: 3px;
}

.cjd-action-icon {
    font-size: 1.35em;
    line-height: 1;
}

.cjd-action-details {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
    margin: 1rem 0 0;
}

.cjd-action-details > div {
    min-width: 0;
    padding: 0.8rem 0.9rem;
    border-radius: 11px;
    background: #f3f6fb;
}

.cjd-action-details dt {
    margin: 0 0 0.25rem;
    color: #5d6878;
    font-size: 0.82rem;
    font-weight: 700;
}

.cjd-action-details dd {
    margin: 0;
    color: #111827;
    font-size: 0.98rem;
    font-weight: 750;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.cjd-action-notice {
    margin: 0.9rem 0 0;
    color: #6b4f00;
    font-size: 0.88rem;
    line-height: 1.55;
}

@keyframes cjd-action-bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(4px); }
}

@media (max-width: 640px) {
    .cjd-action-box {
        border-radius: 14px;
    }

    .cjd-action-details {
        grid-template-columns: 1fr;
    }

    .cjd-action-button {
        min-height: 58px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cjd-action-guide span {
        animation: none;
    }

    .cjd-action-button {
        transition: none;
    }
}

.cjd-action-details dd a {
    color: #165dce;
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* 최저가템 홈 배너 */
.cjd-deal-home-banner {
    position: relative;
    z-index: 9990;
    width: 100%;
    margin: 0;
    background: linear-gradient(100deg, #ff3d00 0%, #ff7a00 48%, #ffc400 100%);
    box-shadow: 0 8px 24px rgba(176, 45, 0, 0.24);
}

.cjd-deal-home-banner > a {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    width: min(1180px, calc(100% - 2rem));
    min-height: 76px;
    margin: 0 auto;
    padding: 0.8rem 0;
    color: #15110c !important;
    text-decoration: none !important;
}

.cjd-deal-home-icon {
    display: grid;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    place-items: center;
    border: 2px solid rgba(255, 255, 255, 0.8);
    border-radius: 16px;
    background: #14110d;
    color: #fff;
    font-size: 1.65rem;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.18);
}

.cjd-deal-home-copy {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: column;
    line-height: 1.25;
}

.cjd-deal-home-copy strong {
    font-size: clamp(1.35rem, 3.8vw, 2rem);
    font-weight: 950;
    letter-spacing: -0.04em;
}

.cjd-deal-home-copy small {
    margin-top: 0.18rem;
    font-size: clamp(0.83rem, 2.5vw, 1rem);
    font-weight: 750;
}

.cjd-deal-home-action {
    flex: 0 0 auto;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    background: #111;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 900;
    box-shadow: 0 7px 16px rgba(0, 0, 0, 0.2);
}

.cjd-deal-floating-button {
    position: fixed;
    right: max(18px, env(safe-area-inset-right));
    bottom: max(24px, env(safe-area-inset-bottom));
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 52px;
    padding: 0.7rem 1rem;
    border: 2px solid #fff;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff2d00, #ff8a00);
    color: #fff !important;
    font-size: 1rem;
    text-decoration: none !important;
    box-shadow: 0 12px 30px rgba(164, 40, 0, 0.34);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.cjd-deal-floating-button:hover,
.cjd-deal-floating-button:focus-visible {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 16px 34px rgba(164, 40, 0, 0.42);
}

.cjd-deals-page {
    width: min(1160px, 100%);
    margin: 0 auto;
    color: #171717;
}

.cjd-deals-hero {
    margin: 0 0 2rem;
    padding: clamp(1.4rem, 5vw, 3rem);
    border-radius: 24px;
    background: radial-gradient(circle at 88% 18%, rgba(255, 221, 0, 0.95), transparent 32%), linear-gradient(135deg, #ff3d00, #ff9400 72%);
    color: #17110c;
    box-shadow: 0 18px 44px rgba(185, 53, 0, 0.22);
}

.cjd-deals-kicker {
    display: inline-flex;
    padding: 0.35rem 0.7rem;
    border-radius: 999px;
    background: rgba(17, 17, 17, 0.9);
    color: #fff;
    font-size: 0.8rem;
    font-weight: 850;
}

.cjd-deals-hero h1 {
    margin: 0.65rem 0 0.55rem;
    color: #111;
    font-size: clamp(2rem, 7vw, 4.2rem);
    font-weight: 950;
    letter-spacing: -0.06em;
    line-height: 1;
}

.cjd-deals-hero p {
    max-width: 760px;
    margin: 0;
    font-size: 1rem;
    font-weight: 650;
    line-height: 1.65;
}

.cjd-deals-search {
    display: flex;
    gap: 0.65rem;
    margin-top: 1.25rem;
}

.cjd-deals-search input {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 54px;
    padding: 0 1rem;
    border: 2px solid rgba(0, 0, 0, 0.16);
    border-radius: 14px;
    background: #fff;
    color: #111;
    font-size: 1rem;
}

.cjd-deals-search button {
    flex: 0 0 auto;
    min-height: 54px;
    padding: 0 1.15rem;
    border: 0;
    border-radius: 14px;
    background: #111;
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.cjd-deal-section {
    margin: 0 0 2.2rem;
}

.cjd-deal-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin: 0 0 0.9rem;
}

.cjd-deal-section-heading h2 {
    margin: 0.1rem 0 0;
    font-size: clamp(1.35rem, 4vw, 2rem);
    font-weight: 900;
    letter-spacing: -0.035em;
}

.cjd-deal-section-heading small {
    color: #6b7280;
    white-space: nowrap;
}

.cjd-deal-query-label {
    color: #e33a00;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.cjd-deal-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.cjd-deal-card {
    position: relative;
    overflow: hidden;
    border: 1px solid #e6e6e6;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 10px 28px rgba(25, 25, 25, 0.08);
}

.cjd-deal-rank {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    z-index: 2;
    padding: 0.35rem 0.58rem;
    border-radius: 999px;
    background: #ff3d00;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 900;
    box-shadow: 0 5px 14px rgba(151, 36, 0, 0.3);
}

.cjd-deal-image {
    display: grid;
    aspect-ratio: 4 / 3;
    place-items: center;
    overflow: hidden;
    background: #f7f7f7;
    text-decoration: none !important;
}

.cjd-deal-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.22s ease;
}

.cjd-deal-card:hover .cjd-deal-image img {
    transform: scale(1.035);
}

.cjd-deal-image > span {
    font-size: 3rem;
}

.cjd-deal-card-body {
    padding: 1rem;
}

.cjd-deal-seller {
    display: block;
    margin-bottom: 0.25rem;
    color: #6b7280;
    font-size: 0.78rem;
    font-weight: 700;
}

.cjd-deal-card h3 {
    display: -webkit-box;
    min-height: 3.1em;
    margin: 0;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    font-size: 1rem;
    line-height: 1.55;
}

.cjd-deal-card h3 a {
    color: #171717 !important;
    text-decoration: none !important;
}

.cjd-deal-price-row {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.cjd-deal-price-row strong {
    color: #e63700;
    font-size: 1.45rem;
    font-weight: 950;
    letter-spacing: -0.035em;
}

.cjd-deal-price-row del {
    color: #8a8a8a;
    font-size: 0.82rem;
}

.cjd-deal-meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0.8rem 0;
}

.cjd-deal-meta > div {
    padding: 0.55rem;
    border-radius: 10px;
    background: #f6f6f6;
}

.cjd-deal-meta dt {
    color: #777;
    font-size: 0.72rem;
    font-weight: 700;
}

.cjd-deal-meta dd {
    margin: 0.15rem 0 0;
    color: #222;
    font-size: 0.84rem;
    font-weight: 850;
}

.cjd-deal-buy-button {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0.7rem;
    border-radius: 12px;
    background: #111;
    color: #fff !important;
    font-size: 0.9rem;
    font-weight: 900;
    text-align: center;
    text-decoration: none !important;
}

.cjd-deal-notice {
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ddd;
    border-radius: 14px;
    background: #fafafa;
    line-height: 1.6;
}

.cjd-deal-notice-warning {
    border-color: #ffcc80;
    background: #fff7e8;
    color: #5c3500;
}

.cjd-deals-disclosure {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-size: 0.82rem;
    line-height: 1.65;
}

@media (max-width: 860px) {
    .cjd-deal-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .cjd-deal-home-banner > a {
        width: min(100% - 1rem, 1180px);
        gap: 0.65rem;
    }

    .cjd-deal-home-icon {
        flex-basis: 44px;
        width: 44px;
        height: 44px;
        border-radius: 13px;
        font-size: 1.35rem;
    }

    .cjd-deal-home-copy small {
        display: none;
    }

    .cjd-deal-home-action {
        padding: 0.6rem 0.72rem;
        font-size: 0.78rem;
    }

    .cjd-deal-floating-button {
        right: 12px;
        bottom: 16px;
        min-height: 48px;
        padding: 0.62rem 0.82rem;
    }

    .cjd-deals-hero {
        border-radius: 18px;
    }

    .cjd-deals-search {
        flex-direction: column;
    }

    .cjd-deal-grid {
        grid-template-columns: 1fr;
    }

    .cjd-deal-section-heading {
        align-items: start;
        flex-direction: column;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cjd-deal-floating-button,
    .cjd-deal-image img {
        transition: none;
    }
}

/* 쿠팡 파트너스 우측 하단 검색 위젯 */
.cjd-coupang-widget {
    position: fixed;
    right: max(30px, env(safe-area-inset-right));
    bottom: max(26px, env(safe-area-inset-bottom));
    z-index: 9998;
    width: min(326px, calc(100vw - 28px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.cjd-coupang-widget.is-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.cjd-coupang-toggle {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-height: 46px;
    margin-left: auto;
    padding: 0.62rem 0.9rem;
    border: 1px solid #dfe3e8;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.97);
    color: #27313d;
    font: inherit;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(24, 35, 52, 0.14);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.cjd-coupang-toggle:hover,
.cjd-coupang-toggle:focus-visible {
    border-color: #c7ccd3;
    box-shadow: 0 11px 26px rgba(24, 35, 52, 0.19);
    transform: translateY(-1px);
}

.cjd-coupang-toggle:focus-visible,
.cjd-coupang-close:focus-visible {
    outline: 3px solid rgba(22, 93, 206, 0.22);
    outline-offset: 2px;
}

.cjd-coupang-toggle-icon {
    font-size: 1rem;
    line-height: 1;
}

.cjd-coupang-panel {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    width: 100%;
    padding: 0.78rem;
    border: 1px solid #e1e4e8;
    border-radius: 15px;
    background: #fff;
    color: #20262e;
    box-shadow: 0 16px 38px rgba(24, 35, 52, 0.19);
}

.cjd-coupang-panel[hidden] {
    display: none !important;
}

.cjd-coupang-panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.65rem;
    margin-bottom: 0.55rem;
}

.cjd-coupang-panel-head strong {
    color: #2b3139;
    font-size: 0.82rem;
    font-weight: 850;
    letter-spacing: -0.02em;
    line-height: 1.4;
}

.cjd-coupang-close {
    display: grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #f3f4f6;
    color: #606873;
    font: inherit;
    font-size: 1.05rem;
    line-height: 1;
    cursor: pointer;
}

.cjd-coupang-iframe {
    display: block;
    width: 100%;
    height: 44px;
    overflow: hidden;
    border: 0;
    border-radius: 8px;
    background: #fff;
}

.cjd-coupang-disclosure {
    margin: 0.38rem 0 0;
    color: #737b86;
    font-size: 10px;
    font-weight: 400;
    line-height: 1.35;
    letter-spacing: -0.01em;
}

@media (max-width: 640px) {
    .cjd-coupang-widget {
        right: max(12px, env(safe-area-inset-right));
        bottom: max(14px, env(safe-area-inset-bottom));
        width: min(320px, calc(100vw - 24px));
    }

    .cjd-coupang-toggle {
        min-height: 44px;
        padding: 0.58rem 0.78rem;
        font-size: 0.8rem;
    }

    .cjd-coupang-panel {
        padding: 0.7rem;
        border-radius: 14px;
    }

    .cjd-coupang-panel-head strong {
        font-size: 0.78rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .cjd-coupang-widget,
    .cjd-coupang-toggle {
        transition: none;
    }
}

/* 찾는답 테마에서는 신청·예매 CTA를 제목·요약 바로 아래, 대표 이미지보다 먼저 배치합니다. */
.entry-card > .cjd-action-box[data-cjd-placement="lead"] {
    margin-top: 1.35rem;
    margin-bottom: 1.5rem;
}
