/* ==========================
   OFFER WRAPPER
========================== */

.th-offer-wrapper { 
    margin: 16px 0; 
    border-radius:8px;
    background:#fff;
    margin: 16px 0;
    border-radius: 8px;
    background: #fff;
    gap: 10px;
    display: flex;
    flex-direction: column;
}
.th-offer-label {
    display: flex;
    align-items: center; /* Vertical center alignment */
    gap: 12px;
    cursor: pointer;
    width: 100%;
    box-sizing: border-box; /* Padding ko width ke andar rakhega */
    flex-wrap: nowrap;     /* Content ko wrap hone se rokega */
}


.th-offer-content {
    display: flex;
    flex-grow: 1;         /* Yeh label ki bachi hui jagah le lega */
    align-items: center;
    justify-content: space-between; /* Left aur Right ko door rakhega */
    gap: 10px;
    min-width: 0;         /* Yeh bahut zaroori hai, isse text overflow nahi hoga */
}

.th-offer-left {
    flex: 1;              /* Title ko flexible space dega */
    overflow: hidden;
}

.th-offer-title {
    margin: 0;
    white-space: nowrap;  /* Text ko break hone se roke ga */
    overflow: hidden;
    text-overflow: ellipsis; /* Agar zyada bada ho to "..." dikha dega */
}

.th-offer-right {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;       /* Right side (Price/Badge) ko kabhi shrink nahi hone dega */
}



/* ==========================
   CARD DESIGN (Compact)
========================== */
.th-offer-radio{
    display:none;
}
.th-offer-radio-card {
    position: relative;
    background:#f2f2f2;
    border: 1px solid #ccc;
    border-radius:8px;
    overflow: hidden;
    transition: all 0.2s ease;
    margin-bottom: 15px;
}


/* Active State */
.th-offer-radio-card.active,
.th-offer-radio-card:has(.th-offer-radio:checked) {
  
   background:var(--th-card-active-bg);
}

/* ==========================
   LABEL & RADIO
========================== */


.th-radio-mark {
    width: 20px;
    height: 20px;
    border: 1px solid #333;
    border-radius: 50%;
    position: relative;
    box-sizing: border-box;
}



/* ==========================
   CONTENT COMPACTING
========================== */
.th-offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 12px;
}

.th-offer-title {
    font-size: 15px;
    font-weight: 700;
    color: #111827;
    margin: 0 !important;
}

.th-offer-subtitle {
    font-size: 12px;
    color: #6b7280;
    margin-top: 2px;
}

/* Badge (Small & Sharp) */
.th-save-badge {
   padding: 6px 12px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    text-transform: uppercase;
    flex-shrink: 0;
}

/* Price Section (Balanced) */
.th-offer-right { text-align: right; }

.th-offer-right .th-price {
    font-size: 13px;
    font-weight:600;
    color: #111827;
    line-height: 1;
}

.th-offer-right del {
    font-size: 12px;
    color: #9ca3af;
    margin-right: 4px;
}

/* Price Wrap - Inner */
.th-price .th-price-wrap {
    display: flex;
    align-items: baseline;
    justify-content: end;
    gap: 4px;
}
.th-price-text{
font-size:14px;
font-weight:600;
}

.th-offer-right{
display: flex;
    align-items: center;
    gap: 10px;}

    .th-offer-left img{
    width:35px;
    height:35px;
    object-fit: cover;
    border-radius: 4px;
}

.th-offer-left{
    align-items: center;
    overflow: hidden;
    display: flex;
    gap: 10px;
}
/* ======================
   FRONTEND OFFER CARD
====================== */

.th-offer-row {
    display: flex;
    align-items: center;
    gap: 14px;
    border: 1px solid #d1d5db;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.th-offer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 14px;
}

.th-offer-left {
    flex: 1;
    min-width: 0;
}



.th-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 10px;
    line-height: 1;
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ======================
   RIGHT SIDE
====================== */

.th-offer-wrp {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    flex-shrink: 0;
}

.th-price {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    line-height: 1.3;
    text-align: right;
}

.th-price del {
    font-size: 13px;
    color: #9ca3af;
    margin-right: 4px;
}

.th-price strong {
    font-size: 13px;
    line-height: 1;
    font-weight: 800;
    color: inherit;
}

.th-offer-short-desc {
    margin-top: 4px;
    font-size: 12px;
    line-height: 1.5;
    color: #6b7280;
    font-weight: 500;
    text-align: right;
}
.th-offer-skeleton {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
    padding: 14px;
    background: #fff;
}

.th-skel-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

.th-skel-left,
.th-skel-right {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.th-skel-title,
.th-skel-badge,
.th-skel-price,
.th-skel-desc {
    position: relative;
    overflow: hidden;
    background: #f3f4f6;
    border-radius: 8px;
}

.th-skel-title {
    width: 220px;
    height: 18px;
}

.th-skel-badge {
    width: 90px;
    height: 24px;
    border-radius: 999px;
}

.th-skel-price {
    width: 140px;
    height: 18px;
    margin-left: auto;
}

.th-skel-desc {
    width: 120px;
    height: 12px;
    margin-left: auto;
}

.th-skel-title::after,
.th-skel-badge::after,
.th-skel-price::after,
.th-skel-desc::after {
    content: "";
    position: absolute;
    inset: 0;
    transform: translateX(-100%);
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255,255,255,.8),
        transparent
    );
    animation: thSkeleton 1.2s infinite;
}

@keyframes thSkeleton {
    100% {
        transform: translateX(100%);
    }
}

.th-offer-loading {
    display: none;
}

.th-offer-radio-card{
    background: var(--th-card-bg);
    padding-top:var(--th-padding-top);
    padding-bottom:var(--th-padding-bottom);
    padding-left:var(--th-padding-left);
    padding-right:var(--th-padding-right);
    border-top: var(--th-border-top-width) var(--th-border-style) var(--th-border-color);
    border-right: var(--th-border-right-width) var(--th-border-style) var(--th-border-color);
    border-bottom: var(--th-border-bottom-width) var(--th-border-style) var(--th-border-color);
    border-left: var(--th-border-left-width) var(--th-border-style) var(--th-border-color);
    border-top-left-radius: var(--th-card-radius-top);
    border-top-right-radius: var(--th-card-radius-right);
    border-bottom-right-radius: var(--th-card-radius-bottom);
    border-bottom-left-radius: var(--th-card-radius-left);
}

.th-offer-card.offer_select,
.th-offer-card.th-card-active{
    background: var(--th-card-active-bg);
}

.th-offer-title,.th-offer-short-desc{
    color: var(--th-heading-color);
}


.th-offer-card .th-price,
.th-offer-card .th-new-price,
.th-offer-card .th-each-price,.th-offer-card .th-price-wrap,.th-offer-card .th-price del{
    color: var(--th-price-color);
}

.th-save-badge{
    background: var(--th-badge-bg);
    color: var(--th-badge-color);
}

.th-radio-mark{
    --th-radio-color: var(--th-highlight-color);
}


/* style 2 */
.th_layout_2.th-dynamic .th-offer-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap:8px;
    align-items: flex-start;
}

.th_layout_2.th-dynamic .th-offer-content .th-offer-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--th-heading-color, #0f172a);
}
.th_layout_2.th-dynamic .th-offer-label {
    padding:0;
    gap:18px;
}
.th_layout_2.th-dynamic .th-offer-content .th-offer-meta .th-save-badge{
    background-color: var(--th-badge-bg, #0f172a);
    color: var(--th-badge-color, #ffffff);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.th_layout_2.th-dynamic .th-price-content {
    display: flex;
    align-items:flex-start;
    color: var(--th-price-color, #334155);
}

.th_layout_2.th-dynamic .th-price-content .th-price{
    font-size: 14px;
    padding:0;
    text-align:left;
}

.th_layout_2.th-dynamic .th-price-content .th-offer-short-desc{
    font-size: 14px;
}

.th-radio-mark {
    position: relative;
    width: 20px;
    height: 20px;
    border: 1px solid #111;
    border-radius: 50%;
    background: #fff;
    transition: all .2s ease;
    flex-shrink: 0!important;
}

.th-card-active.offer_select .th-radio-mark {
    background: var(--th-radio-color);
    border-color: var(--th-radio-color);
}

.th-card-active.offer_select .th-radio-mark::after {
    content: "\f147";
    font-family: dashicons;
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 16px;
    line-height: 1;
}
.th-offer-radio-card.active, 
.th-offer-radio-card:has(.th-offer-radio:checked){
   
    border-color:var(--th-highlight-color);
}

/* bogo y and x style style 2 */
.th_layout_2 .th-offer-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap:8px;
    align-items: flex-start;
}
.th_layout_2 .th-offer-content .th-offer-header{
     display: flex;
     align-items: center;
     
}
.th_layout_2 .th-offer-content .th-offer-header h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--th-heading-color, #0f172a);
    white-space: normal;
}
.th_layout_2 .th-offer-label {
    padding:0;
    gap:18px;
}
.th_layout_2 .th-offer-content .th-offer-meta .th-save-badge{
    background-color: var(--th-badge-bg, #0f172a);
    color: var(--th-badge-color, #ffffff);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 8px;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.th_layout_2 .th-price-content {
    display: flex;
    align-items:flex-start;
    color: var(--th-price-color, #334155);
}

.th_layout_2 .th-price-content .th-price{
    font-size: 14px;
    padding:0;
    text-align:left;
}

.th_layout_2 .th-price .th-price-wrap {
    justify-content: flex-start;
}

.th_layout_2 .th-price-content .th-offer-short-desc{
    font-size: 14px;
}

.th_layout_2  .th-offer-label img {
    width: 48px;
    height: 48px;
    background: rgb(243, 244, 246);
    border-radius: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    flex-shrink: 0;
   
}
/* ==========================
   MOBILE (Responsive)
========================== */
@media(max-width: 600px) {
    .th-offer-label { padding: 12px; }
    .th-offer-content { gap: 8px; }
    .th-offer-title { font-size: 14px; }
    .th-offer-right .th-price { font-size: 16px; }
}
/* Responsive fix: Agar screen bahut chhoti ho jaye */
@media (max-width: 480px) {
    .th-offer-label {
        flex-direction: column;
        align-items: flex-start;
    }
    .th-offer-content {
        width: 100%;
    }
}

