.tpc-wrap{direction:rtl;margin:14px 0;font-family:inherit;text-align:center}
.tpc-open-btn{width:auto;min-width:190px;border:0;background:#B79148;color:#fff;border-radius:15px;padding:10px 20px;font-weight:900;cursor:pointer;box-shadow:0 10px 22px rgba(183,145,72,.25);transition:.25s;line-height:1.6;text-align:center}
.tpc-open-btn:hover{background:#9f7936;color:#fff;transform:translateY(-2px)}
.tpc-modal{display:none;position:fixed;inset:0;z-index:999999;text-align:initial}
.tpc-modal.is-open{display:block}
.tpc-backdrop{position:absolute;inset:0;background:rgba(29,23,17,.76);backdrop-filter:blur(8px)}
body.tpc-modal-open{overflow:hidden}
.tpc-box{position:relative;width:min(94vw,850px);max-height:94vh;overflow:auto;margin:3vh auto;background:linear-gradient(145deg,#fffdf9,#fff7e9);border:1px solid #d8aa51;border-radius:28px;box-shadow:0 35px 100px rgba(16,11,7,.55),inset 0 1px 0 rgba(255,255,255,.85);color:#241a12;padding:28px}
.tpc-close{position:absolute;left:26px;top:26px;width:42px;min-width:42px;height:42px;display:flex;align-items:center;justify-content:center;padding:0;border:0;border-radius:15px;background:#B79148;color:#fff;font-size:30px;line-height:1;font-weight:400;cursor:pointer;z-index:3;box-shadow:0 8px 18px rgba(183,145,72,.25)}
.tpc-close:hover{background:#9f7936;color:#fff}
.tpc-title{width:fit-content;min-width:310px;margin:42px auto -28px;padding:15px 42px;border:1px solid #d8aa51;border-radius:15px;background:linear-gradient(180deg,#fff,#fff5e4);font-size:24px;font-weight:950;text-align:center;color:#241a12;box-shadow:0 12px 28px rgba(130,86,31,.12);position:relative;z-index:2}
.tpc-content{padding:64px 24px 25px;background:rgba(255,255,255,.58);border:1px solid rgba(216,170,81,.65);border-radius:22px}
.tpc-summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:18px}
.tpc-summary-card{display:flex;align-items:center;gap:16px;min-height:112px;padding:18px 22px;background:linear-gradient(180deg,#FFFDF9 0%,#FBF4E8 100%);border:1px solid rgba(216,170,81,.42);border-radius:20px;box-shadow:0 10px 25px rgba(88,58,23,.07)}
.tpc-summary-icon{flex:0 0 54px;width:54px;height:54px;border-radius:18px;display:flex;align-items:center;justify-content:center;background:#fff3d9;color:#B27B1C;font-size:27px;font-weight:900}
.tpc-summary-card>div{display:flex;flex-direction:column;gap:8px;text-align:right}
.tpc-summary-card strong{font-size:16px;font-weight:950;color:#2b2118}
.tpc-summary-card>div>span{font-size:21px;font-weight:900;color:#17110c;white-space:nowrap}
.tpc-flow-list{display:flex;flex-direction:column;gap:12px}
.tpc-flow-card{display:grid;grid-template-columns:58px minmax(210px,1fr) 78px minmax(175px,.75fr);align-items:center;gap:14px;padding:17px 20px;background:linear-gradient(180deg,#FFFDF9 0%,#FBF4E8 100%);border:1px solid rgba(216,170,81,.40);border-radius:18px;box-shadow:0 8px 22px rgba(80,53,22,.06);position:relative}
.tpc-flow-card:after{content:'';position:absolute;right:48px;bottom:-13px;width:2px;height:13px;background:linear-gradient(#d9b56f,#f0dcae);z-index:2}
.tpc-flow-card:last-child:after{display:none}
.tpc-flow-icon{width:50px;height:50px;border-radius:50%;display:flex;align-items:center;justify-content:center;background:#fff3dc;color:#B27B1C;font-size:23px;font-weight:900}
.tpc-flow-gold .tpc-flow-icon:before{content:'◆'}
.tpc-flow-gear .tpc-flow-icon:before{content:'⚙'}
.tpc-flow-profit .tpc-flow-icon:before{content:'↗'}
.tpc-flow-gift .tpc-flow-icon:before{content:'◇'}
.tpc-flow-tax .tpc-flow-icon:before{content:'٪'}
.tpc-flow-copy{text-align:right;min-width:0}
.tpc-flow-copy strong{display:block;font-size:18px;font-weight:950;color:#271d14}
.tpc-flow-copy small{display:block;margin-top:6px;color:#75695d;font-size:12px;line-height:1.7}
.tpc-flow-percent{justify-self:center;display:inline-flex;align-items:center;justify-content:center;min-width:56px;padding:8px 10px;border-radius:10px;background:#fff4df;color:#B27B1C;font-size:16px;font-weight:950}
.tpc-flow-percent-empty{color:#a99a88}
.tpc-flow-value{text-align:left;border-right:1px dashed rgba(183,145,72,.35);padding-right:18px;direction:rtl}
.tpc-flow-value strong{font-size:20px;font-weight:950;color:#A66F16;white-space:nowrap}
.tpc-flow-value strong:before{content:'+ ';font-weight:500}
.tpc-flow-gold .tpc-flow-value strong:before{content:''}
.tpc-tax-info{display:flex;align-items:center;gap:12px;margin:16px 0;padding:13px 16px;border-radius:14px;background:linear-gradient(90deg,#fff8eb,#f7ead1);border:1px solid rgba(216,170,81,.38);color:#5f5142;font-size:13px;line-height:1.9}
.tpc-tax-info-icon{flex:0 0 34px;width:34px;height:34px;border-radius:11px;display:flex;align-items:center;justify-content:center;background:#fff1d1;color:#B27B1C;font-size:19px;font-weight:950}
.tpc-final-card{display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:25px;margin-top:18px;padding:24px 28px;border-radius:20px;background:linear-gradient(135deg,#f6d77e 0%,#dba73b 55%,#c68f24 100%);border:1px solid #c28a21;box-shadow:0 16px 34px rgba(154,100,20,.22),inset 0 1px 0 rgba(255,255,255,.5);color:#21170d}
.tpc-final-copy{text-align:right}
.tpc-final-copy strong{display:block;font-size:23px;font-weight:950}
.tpc-final-copy small{display:block;margin-top:7px;font-size:13px;font-weight:700;color:#4c3516}
.tpc-final-price{text-align:left;font-size:29px;font-weight:950;white-space:nowrap;color:#171008;border-right:1px dashed rgba(69,45,15,.25);padding-right:25px}
.tpc-note{margin:18px auto 0;padding:12px 18px;color:#736758;background:linear-gradient(180deg,#FFFDF9 0%,#FBF4E8 100%);border:1px solid rgba(216,170,81,.30);border-radius:13px;line-height:1.9;font-size:13px;text-align:center;box-shadow:0 7px 20px rgba(79,52,23,.06);max-width:84%}
.tpc-shield-icon{display:inline-flex;align-items:center;justify-content:center;width:23px;height:23px;margin-left:8px;border:2px solid #c89131;border-radius:8px;color:#c89131;font-size:12px;font-weight:900;vertical-align:-3px}
.tpc-admin-wrap h1{color:#2b2118}.tpc-admin-card{background:#fffaf1;border:1px solid #d5aa5f;border-radius:14px;padding:18px;margin:16px 0;box-shadow:0 8px 24px rgba(183,145,72,.12)}
@media(max-width:700px){.tpc-box{width:95vw;margin:2.5vh auto;padding:14px;border-radius:22px}.tpc-close{left:16px;top:16px;width:36px;min-width:36px;height:36px;font-size:25px}.tpc-title{min-width:230px;margin:38px auto -24px;padding:12px 24px;font-size:19px}.tpc-content{padding:50px 12px 16px}.tpc-summary-grid{grid-template-columns:1fr;gap:10px}.tpc-summary-card{min-height:80px;padding:13px 15px}.tpc-summary-icon{width:44px;height:44px;flex-basis:44px;font-size:21px}.tpc-summary-card>div>span{font-size:17px}.tpc-flow-card{grid-template-columns:44px 1fr auto;padding:14px 13px;gap:10px}.tpc-flow-icon{width:42px;height:42px;font-size:19px}.tpc-flow-percent{grid-column:3;grid-row:1;min-width:48px;padding:6px;font-size:14px}.tpc-flow-value{grid-column:2/4;grid-row:2;border-right:0;border-top:1px dashed rgba(183,145,72,.3);padding:10px 0 0;text-align:right}.tpc-flow-value strong{font-size:18px}.tpc-flow-copy strong{font-size:16px}.tpc-flow-copy small{font-size:11px}.tpc-flow-card:after{right:33px}.tpc-tax-info{font-size:12px}.tpc-final-card{grid-template-columns:1fr;padding:19px;text-align:center}.tpc-final-copy{text-align:center}.tpc-final-copy strong{font-size:20px}.tpc-final-price{text-align:center;border-right:0;border-top:1px dashed rgba(69,45,15,.25);padding:15px 0 0;font-size:25px}.tpc-note{max-width:100%;font-size:11px}}


/* v1.6 - اجبار استایل دکمه‌ها در برابر استایل‌های قالب Woodmart */
body.single-product .tpc-wrap button.tpc-open-btn,
body.woocommerce div.product .tpc-wrap button.tpc-open-btn,
.tpc-wrap .tpc-open-btn,
.tpc-wrap button[type="button"].tpc-open-btn {
    -webkit-appearance:none !important;
    appearance:none !important;
    background:#B79148 !important;
    background-color:#B79148 !important;
    color:#fff !important;
    border:0 !important;
    border-radius:15px !important;
    min-height:44px !important;
    padding:10px 24px !important;
    font-weight:900 !important;
    line-height:1.6 !important;
    text-shadow:none !important;
    box-shadow:0 10px 22px rgba(183,145,72,.28) !important;
}
body.single-product .tpc-wrap button.tpc-open-btn:hover,
body.woocommerce div.product .tpc-wrap button.tpc-open-btn:hover,
.tpc-wrap .tpc-open-btn:hover {
    background:#9f7936 !important;
    background-color:#9f7936 !important;
    color:#fff !important;
    transform:translateY(-2px);
}
body.single-product .tpc-modal button.tpc-close,
body.woocommerce .tpc-modal button.tpc-close,
.tpc-modal .tpc-close,
.tpc-modal button[type="button"].tpc-close {
    -webkit-appearance:none !important;
    appearance:none !important;
    width:42px !important;
    min-width:42px !important;
    max-width:42px !important;
    height:42px !important;
    min-height:42px !important;
    padding:0 !important;
    margin:0 !important;
    display:flex !important;
    align-items:center !important;
    justify-content:center !important;
    background:#B79148 !important;
    background-color:#B79148 !important;
    color:#fff !important;
    border:0 !important;
    border-radius:15px !important;
    font-size:30px !important;
    font-weight:400 !important;
    line-height:1 !important;
    text-shadow:none !important;
    box-shadow:0 8px 18px rgba(183,145,72,.28) !important;
}
body.single-product .tpc-modal button.tpc-close:hover,
body.woocommerce .tpc-modal button.tpc-close:hover,
.tpc-modal .tpc-close:hover {
    background:#9f7936 !important;
    background-color:#9f7936 !important;
    color:#fff !important;
}
