.tnwc-grid{display:grid;grid-template-columns:repeat(var(--tnwc-cols,3),minmax(0,1fr));gap:14px;background:#eaf8ee;padding:16px;border-radius:18px}
.tnwc-card{background:#fff;border-radius:17px;padding:12px;min-width:0;overflow:hidden;box-shadow:0 1px 3px rgba(12,73,40,.035);display:flex;flex-direction:column}
.tnwc-image{position:relative;display:block;aspect-ratio:3.15/1.05;overflow:hidden;border-radius:12px}
.tnwc-image img{width:100%;height:100%;object-fit:cover;display:block;transition:transform .3s}
.tnwc-image:hover img{transform:scale(1.035)}
.tnwc-badge{position:absolute;top:9px;left:10px;border-radius:9px;padding:7px 15px;color:#fff;background:#d60052;font-size:15px;font-weight:700;line-height:1.1}
.tnwc-badge--emergency{background:#ef0a62}.tnwc-badge--calling{background:#ed0b68}.tnwc-badge--completed{background:#078744}
.tnwc-content{display:flex;flex:1;flex-direction:column;padding:8px 7px 2px}
.tnwc-title{font-size:18px!important;line-height:1.3!important;margin:0 0 5px!important;font-weight:700!important;color:#171717}
.tnwc-title a{color:inherit!important;text-decoration:none!important}
.tnwc-location{display:flex;align-items:flex-start;gap:8px;color:#595959;font-size:13px;line-height:1.45;min-height:28px;margin-bottom:9px}
.tnwc-pin{color:#f20b63;font-size:23px;line-height:16px}
.tnwc-progress-line{display:flex;align-items:center;gap:10px;margin-top:auto;margin-bottom:8px}
.tnwc-track{height:15px;flex:1;background:#e3e3e3;border-radius:30px;overflow:hidden}
.tnwc-track>span{display:block;height:100%;border-radius:30px;background:linear-gradient(90deg,#fc0b74,#ef0a58);position:relative}
.tnwc-progress-line>strong{font-size:15px;color:#171717;min-width:36px;text-align:right}
.tnwc-money{font-size:14px;color:#858585;margin-bottom:9px;line-height:1.4;white-space:normal}
.tnwc-money strong{font-size:16px;color:#222}.tnwc-money .woocommerce-Price-amount{white-space:nowrap}
.tnwc-sep{color:#aaa}
.tnwc-button{display:flex;align-items:center;justify-content:center;gap:12px;background:#07883e;color:white!important;border-radius:7px;min-height:43px;font-size:15px;font-weight:700;text-decoration:none!important;transition:background .2s}
.tnwc-button:hover{background:#056c32;color:#fff!important}
@media(max-width:849px){.tnwc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:549px){.tnwc-grid{grid-template-columns:1fr;padding:10px;gap:12px}.tnwc-image{aspect-ratio:3/1.15}.tnwc-title{font-size:17px!important}}

/* Single product fundraising block – appears above the short description. */
.single-product .tnwc-single-details{padding:18px 20px;margin:8px 0 20px;background:#f5fbf7;border:1px solid #dceee3;border-radius:14px;color:#222}
.single-product .tnwc-single-badge{display:inline-flex;background:#d60052;color:#fff;font-size:13px;font-weight:700;line-height:1.3;padding:6px 13px;border-radius:8px;margin-bottom:12px}
.single-product .tnwc-single-badge--completed{background:#078744}
.single-product .tnwc-single-location{font-size:14px;line-height:1.5;margin-bottom:14px;color:#555}
.single-product .tnwc-single-progress{display:flex;align-items:center;gap:12px;margin-bottom:13px}
.single-product .tnwc-single-progress .tnwc-track{height:14px}
.single-product .tnwc-single-progress>strong{font-size:16px;min-width:40px;text-align:right}
.single-product .tnwc-single-money{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;background: #216a11;
    border-radius: 10px;
    padding: 10px}
.single-product .tnwc-single-money>div{display:flex;flex-direction:column;gap:4px;min-width:0}



.single-product .tnwc-single-money span{font-size:12px;color:#6b7280}

.single-product .tnwc-single-money strong span{}

.single-product .tnwc-single-money strong{font-size:17px;color:#161616;overflow-wrap:anywhere}
.single-product .tnwc-single-money .woocommerce-Price-amount {
    font-weight: 700;
    font-size: 18px;
    color: #000;
}


@media(max-width:549px){.single-product .tnwc-single-details{padding:14px}.single-product .tnwc-single-money strong{font-size:15px}}

/* v1.3: integrated WooCommerce / Flatsome product boxes */
.tnwc-project .box-image{position:relative}
.tnwc-project .tnwc-image-badge{position:absolute;top:10px;left:10px;z-index:8;background:#d60052;color:#fff;font-weight:700;font-size:13px;padding:7px 13px;border-radius:8px;pointer-events:none}
.tnwc-project .box-text{display:flex;flex-direction:column;align-items:stretch}
.tnwc-project .tnwc-loop-details{width:100%;display:flex;flex-direction:column;gap:2px;margin-top:6px;font-size:13px;text-align:left}
.tnwc-project .tnwc-loop-badge{display:inline-block;align-self:flex-start;background:#d60052;color:#fff;font-weight:700;border-radius:8px;padding:6px 12px}
.tnwc-project .tnwc-loop-location{color:#595959;line-height:1.45}
.tnwc-project .tnwc-loop-progress{display:flex;align-items:center;gap:9px}
.tnwc-project .tnwc-loop-progress .tnwc-track{height:14px;min-width:0}
.tnwc-project .tnwc-loop-progress strong{font-size:14px;min-width:35px;text-align:right}
.tnwc-project .tnwc-loop-money{line-height:1.5;color:#777;overflow-wrap:anywhere}
.tnwc-project .tnwc-loop-money strong{color:#222;font-size:15px}
.tnwc-project .tnwc-loop-button{display:flex;justify-content:center;align-items:center;gap:10px;width:100%;min-height:42px;padding:8px 12px;border-radius:7px;background:#07883e;color:#fff!important;font-weight:700;text-decoration:none!important;line-height:1.2;text-transform:none;letter-spacing:0}
.tnwc-project .tnwc-loop-button:hover{background:#056c32;color:#fff!important}
/* Hide normal catalog price and add-to-cart only on donation project cards. */
.tnwc-project .box-text > .price-wrapper,.tnwc-project .box-text > .price,.tnwc-project .box-text > .add-to-cart-button,.tnwc-project .box-text > .add_to_cart_button{display:none!important}
.tnwc-project .tnwc-loop-money .woocommerce-Price-amount{white-space:nowrap}

/* v1.4: Normal boxes also receive fundraising data via JS hydration. */
.tnwc-project.box-normal .box-text, .tnwc-project .box-normal .box-text{display:flex;flex-direction:column;align-items:stretch}
.tnwc-project .box-text .tnwc-loop-details{padding:0 2px 0px}

/* v1.5: verified campaign metadata, compact sidebar detail cards */
.single-product .tnwc-extra-stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:18px}
.single-product .tnwc-extra-stat,.single-product .tnwc-extra-row{display:flex;align-items:center;gap:12px;min-width:0;padding:13px;background:#fff;border:1px solid #e4eee5;border-radius:12px}
.single-product .tnwc-extra-stat>div,.single-product .tnwc-extra-row>div{min-width:0;display:flex;flex-direction:column;gap:3px}
.single-product .tnwc-extra-stat span:not(.tnwc-extra-icon),.single-product .tnwc-extra-row span:not(.tnwc-extra-icon){font-size:12px;color:#657168;line-height:1.4}
.single-product .tnwc-extra-stat strong,.single-product .tnwc-extra-row strong{font-size:15px;color:#000;line-height:1.4;overflow-wrap:anywhere}
.single-product .tnwc-extra-info{display:grid;gap:8px;margin-top:12px}
.single-product .tnwc-extra-row{padding:12px 14px}
.single-product .tnwc-extra-row a{color:#1f6b12;font-weight:700;text-decoration:none;font-size:14px}
.single-product .tnwc-extra-row a:hover{color:#d60052}
.single-product .tnwc-extra-icon{flex:0 0 40px;width:40px;height:40px;display:block;border-radius:11px;background-color:#e9f5e8;background-position:center;background-repeat:no-repeat;background-size:22px}
.single-product .tnwc-users,.single-product .tnwc-heart,.single-product .tnwc-shield{background-color:#fce7ef}
.single-product .tnwc-clock{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b12' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='9'/%3E%3Cpath d='M12 7v5l3 2'/%3E%3C/svg%3E")}
.single-product .tnwc-users{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d60052' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='9' cy='8' r='3'/%3E%3Cpath d='M3 20v-2a6 6 0 0 1 12 0v2M17 5a3 3 0 0 1 0 6m1 3a5 5 0 0 1 3 5'/%3E%3C/svg%3E")}
.single-product .tnwc-building{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b12' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 21V5l8-3 8 3v16M2 21h20M9 21v-5h6v5M8 8h1m6 0h1M8 12h1m6 0h1'/%3E%3C/svg%3E")}
.single-product .tnwc-heart{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d60052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20.8 4.6a5.5 5.5 0 0 0-7.8 0L12 5.7l-1.1-1.1a5.5 5.5 0 0 0-7.8 7.8L12 21l8.8-8.6a5.5 5.5 0 0 0 0-7.8Z'/%3E%3C/svg%3E")}
.single-product .tnwc-calendar{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f6b12' stroke-width='2' stroke-linecap='round'%3E%3Crect x='3' y='5' width='18' height='16' rx='2'/%3E%3Cpath d='M7 3v4m10-4v4M3 10h18'/%3E%3C/svg%3E")}
.single-product .tnwc-shield{background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d60052' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 2 20 6v6c0 5-3.4 8-8 10-4.6-2-8-5-8-10V6zM9 12l2 2 4-4'/%3E%3C/svg%3E")}
@media(max-width:549px){.single-product .tnwc-extra-stats{gap:8px}.single-product .tnwc-extra-stat{padding:9px 7px;gap:7px}.single-product .tnwc-extra-icon{flex-basis:32px;width:32px;height:32px;background-size:18px}.single-product .tnwc-extra-stat strong{font-size:13px}.single-product .tnwc-extra-stat span:not(.tnwc-extra-icon){font-size:11px}}
