
.tpt-esim-search-wrap{
  max-width:1280px;
  margin:0 auto;
  padding:42px 20px 64px;
}
.tpt-esim-search-shell{
  position:relative;
  background:linear-gradient(180deg,#eef4ff 0%,#f9fbff 100%);
  border:1px solid #dbe6ff;
  border-radius:32px;
  padding:42px;
  box-shadow:0 18px 46px rgba(15,38,95,.10);
  overflow:hidden;
}
.tpt-esim-search-shell:before{
  content:"";
  position:absolute;
  width:280px;height:280px;
  right:-90px;top:-90px;
  border-radius:50%;
  background:radial-gradient(circle, rgba(37,99,235,.10) 0%, rgba(37,99,235,0) 70%);
  pointer-events:none;
}
.tpt-esim-hero{position:relative;z-index:1;max-width:760px;margin-bottom:28px;}
.tpt-esim-eyebrow{
  display:inline-flex;align-items:center;gap:8px;
  padding:8px 14px;border-radius:999px;
  background:#ffffff;border:1px solid #dbe6ff;
  color:#2563eb;font-size:.82rem;font-weight:800;
  letter-spacing:.03em;text-transform:uppercase;
  box-shadow:0 10px 24px rgba(37,99,235,.08);
}
.tpt-esim-hero h2{
  margin:16px 0 10px;
  color:#0a1f54;
  font-size:clamp(2rem,4vw,3.35rem);
  line-height:1.04;
  font-weight:800;
  letter-spacing:-.04em;
}
.tpt-esim-hero p{
  margin:0;
  color:#576987;
  font-size:1.06rem;
  line-height:1.65;
  max-width:700px;
}
.tpt-esim-search-form{
  position:relative;z-index:1;
  display:grid;
  grid-template-columns:1.3fr 1fr 1fr .9fr;
  gap:18px;
  align-items:end;
  background:#fff;
  border:1px solid #e5ecfb;
  border-radius:28px;
  padding:24px;
  box-shadow:0 16px 36px rgba(15,23,42,.06);
}
.tpt-field label,.tpt-field-toggle__label{
  display:block;
  margin:0 0 10px;
  color:#102755;
  font-size:.94rem;
  font-weight:800;
}
.tpt-field select,
.tpt-field input{
  width:100%;
  min-height:58px;
  padding:14px 16px;
  border:1px solid #d6e1f7 !important;
  border-radius:16px !important;
  background:#fff !important;
  color:#122a59 !important;
  box-shadow:none !important;
  font-size:1rem;
  transition:border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.tpt-field select:focus,
.tpt-field input:focus{
  outline:none !important;
  border-color:#2563eb !important;
  box-shadow:0 0 0 4px rgba(37,99,235,.12) !important;
}
.tpt-field-toggle{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:58px;
  padding:0 6px;
}
.tpt-switch{
  position:relative;
  display:inline-flex;
  align-items:center;
  width:62px;
  height:34px;
  cursor:pointer;
  flex-shrink:0;
}
.tpt-switch input{
  position:absolute !important;
  opacity:0 !important;
  width:1px !important;
  height:1px !important;
  pointer-events:none;
}
.tpt-switch__slider{
  position:absolute;
  inset:0;
  background:#d9e4fb;
  border-radius:999px;
  transition:.25s ease;
}
.tpt-switch__slider:before{
  content:"";
  position:absolute;
  width:26px;
  height:26px;
  left:4px;
  top:4px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 4px 10px rgba(15,23,42,.18);
  transition:.25s ease;
}
.tpt-switch input:checked + .tpt-switch__slider{background:#2563eb;}
.tpt-switch input:checked + .tpt-switch__slider:before{transform:translateX(28px);}
.tpt-actions{
  grid-column:1 / -1;
  display:flex;
  justify-content:flex-start;
  margin-top:2px;
}
.tpt-button-primary,
.tpt-button-secondary{
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  min-height:56px;
  padding:0 24px;
  border-radius:16px !important;
  font-weight:800 !important;
  text-decoration:none !important;
  border:none !important;
  cursor:pointer;
  text-align:center;
  transition:transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}
.tpt-button-primary{
  background:#2563eb !important;
  color:#fff !important;
  box-shadow:0 16px 30px rgba(37,99,235,.24);
}
.tpt-button-primary:hover{
  background:#1d4ed8 !important;
  color:#fff !important;
  transform:translateY(-1px);
}
.tpt-button-secondary{
  background:#fff !important;
  color:#1d4ed8 !important;
  border:1px solid #c9d8fb !important;
}
.tpt-button-secondary:hover{
  background:#eff6ff !important;
  color:#1d4ed8 !important;
  transform:translateY(-1px);
}
.tpt-esim-benefits{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  margin-top:18px;
}
.tpt-benefit-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:11px 14px;
  background:#fff;
  border:1px solid #dbe6ff;
  border-radius:999px;
  color:#14305f;
  font-weight:700;
  font-size:.92rem;
}
.tpt-benefit-pill:before{content:"✓";color:#2563eb;font-weight:900;}
.tpt-esim-results-head{
  margin:24px 0 16px;
  color:#0a1f54;
  font-size:1.2rem;
  font-weight:800;
}
.tpt-card-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:22px;
}
.tpt-plan-card{
  border:1px solid #e4ebfb;
  border-radius:28px;
  background:#fff;
  box-shadow:0 16px 34px rgba(15,38,95,.07);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  overflow:hidden;
}
.tpt-plan-card__body{padding:26px;}
.tpt-plan-card__country{
  display:inline-flex;
  align-items:center;
  margin-bottom:14px;
  padding:8px 12px;
  border-radius:999px;
  background:#eff6ff;
  color:#1d4ed8;
  font-size:.84rem;
  font-weight:800;
}
.tpt-plan-card h3{
  margin:0 0 12px;
  color:#0f2350;
  font-size:1.28rem;
  line-height:1.3;
  font-weight:800;
  letter-spacing:-.02em;
}
.tpt-plan-card__subtitle{
  margin:0 0 16px;
  color:#0b7b8f;
  font-size:.98rem;
  line-height:1.5;
  font-weight:800;
}
.tpt-plan-meta{
  list-style:none;
  padding:0;
  margin:0 0 20px;
  display:grid;
  gap:10px;
}
.tpt-plan-meta li{margin:0;color:#314564;font-size:.98rem;}
.tpt-plan-meta strong{color:#11295a;}
.tpt-plan-price{
  margin-top:4px;
  color:#0a1f54;
  font-size:2rem;
  line-height:1;
  font-weight:900;
  letter-spacing:-.04em;
}
.tpt-plan-price .amount,
.tpt-plan-price bdi,
.tpt-plan-price span{color:inherit !important;}
.tpt-plan-card__actions{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
  padding:0 26px 26px;
}
.tpt-empty,.tpt-loading{
  padding:18px 20px;
  border:1px dashed #cfdbf3;
  border-radius:18px;
  background:#fff;
  color:#40516f;
}
.tpt-single-meta{
  margin-top:22px;
  padding:24px;
  border:1px solid #e3eaf9;
  border-radius:22px;
  background:#f8fbff;
}
.tpt-single-meta p{margin:0 0 10px;color:#243756;}
.tpt-single-meta p:last-child{margin-bottom:0;}

@media (max-width: 1200px){
  .tpt-esim-search-form{grid-template-columns:1fr 1fr;}
  .tpt-field-toggle{grid-column:1 / -1;max-width:360px;}
}
@media (max-width: 900px){
  .tpt-card-grid{grid-template-columns:repeat(2,minmax(0,1fr));}
}
@media (max-width: 767px){
  .tpt-esim-search-wrap{padding:22px 14px 44px;}
  .tpt-esim-search-shell{padding:24px;border-radius:24px;}
  .tpt-esim-hero h2{font-size:2.15rem;}
  .tpt-esim-search-form{grid-template-columns:1fr;padding:18px;border-radius:22px;gap:14px;}
  .tpt-field-toggle{grid-column:auto;max-width:none;padding:0;}
  .tpt-card-grid{grid-template-columns:1fr;gap:16px;}
  .tpt-plan-card__actions{grid-template-columns:1fr;}
  .tpt-button-primary,.tpt-button-secondary{width:100%;}
}

.tpt-plan-card__actions a{position:relative;z-index:5;pointer-events:auto;}

.tpt-esim-single-page{max-width:1280px;margin:0 auto;padding:32px 20px 72px;}
.tpt-esim-back{display:inline-flex;margin-bottom:18px;color:#1d4ed8;text-decoration:none;font-weight:700}
.tpt-esim-single-card{display:grid;grid-template-columns:1fr 1.1fr;gap:28px;background:linear-gradient(180deg,#eef4ff 0%,#f9fbff 100%);border:1px solid #dbe6ff;border-radius:32px;padding:28px;box-shadow:0 18px 46px rgba(15,38,95,.10)}
.tpt-esim-single-media{min-height:420px;border-radius:28px;background:linear-gradient(135deg,#1d4ed8 0%,#60a5fa 100%);display:flex;align-items:center;justify-content:center;position:relative;color:#fff;font-weight:800}
.tpt-esim-single-media__badge{position:absolute;top:18px;left:18px;background:rgba(255,255,255,.18);border:1px solid rgba(255,255,255,.28);border-radius:999px;padding:8px 12px;font-size:.85rem}
.tpt-esim-single-media__icon{font-size:2rem;background:rgba(255,255,255,.14);padding:18px 24px;border-radius:18px;border:1px solid rgba(255,255,255,.24)}
.tpt-esim-single-content h1{margin:14px 0 10px;color:#0a1f54;font-size:clamp(1.8rem,3vw,2.8rem);line-height:1.08;font-weight:800;letter-spacing:-.03em}
.tpt-esim-single-price{margin:16px 0 18px;color:#0a1f54;font-size:2.2rem;font-weight:900;letter-spacing:-.04em}
.tpt-single-meta--page{margin-bottom:18px}
.tpt-esim-single-desc{color:#40516f;line-height:1.7;margin:14px 0 18px}
.tpt-esim-cart-form .quantity .qty{min-height:52px;border:1px solid #d6e1f7;border-radius:14px;padding:10px 14px}
.tpt-esim-qty-row{display:flex;align-items:center;gap:16px;margin-bottom:18px;flex-wrap:wrap}
.woocommerce div.product .tpt-esim-single-page .product{margin:0!important}
.woocommerce div.product .tpt-esim-single-page div.images,
.woocommerce div.product .tpt-esim-single-page div.summary,
.woocommerce div.product .tpt-esim-single-page .woocommerce-tabs,
.woocommerce div.product .tpt-esim-single-page .related,
.woocommerce div.product .tpt-esim-single-page .product_meta,
.woocommerce div.product .tpt-esim-single-page .woocommerce-breadcrumb{display:none!important}
@media (max-width: 900px){.tpt-esim-single-card{grid-template-columns:1fr}.tpt-esim-single-media{min-height:280px}}

.tpt-esim-shell-page{background:#f5f7fb;min-height:100vh;}
.tpt-integrated-header{position:sticky;top:0;z-index:40;background:#fff;border-bottom:1px solid #e6eefb;box-shadow:0 10px 24px rgba(15,23,42,.04)}
.tpt-integrated-header__inner{max-width:1280px;margin:0 auto;padding:14px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.tpt-integrated-header__brand{display:flex;align-items:center;min-width:180px}
.tpt-integrated-header__brand .custom-logo{max-height:44px;width:auto}
.tpt-integrated-header__logo-link{display:inline-flex;align-items:center;text-decoration:none}
.tpt-integrated-header__site-name{font-size:1.35rem;font-weight:900;color:#0a1f54}
.tpt-integrated-header__nav{flex:1;display:flex;justify-content:center}
.tpt-inline-menu{list-style:none;margin:0;padding:0;display:flex;align-items:center;gap:28px}
.tpt-inline-menu li{margin:0;padding:0;position:relative}
.tpt-inline-menu a{color:#0f2350;text-decoration:none;font-weight:700;font-size:.97rem}
.tpt-inline-menu a:hover{color:#2563eb}
.tpt-inline-menu .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #dbe6ff;border-radius:16px;padding:10px 0;min-width:220px;box-shadow:0 18px 36px rgba(15,23,42,.08)}
.tpt-inline-menu li:hover>.sub-menu{display:block}
.tpt-inline-menu .sub-menu li a{display:block;padding:8px 14px}
.tpt-integrated-header__actions{display:flex;align-items:center;gap:14px}
.tpt-header-cart{display:inline-flex;align-items:center;gap:6px;text-decoration:none;color:#0f2350;font-weight:800}
.tpt-header-cta{min-height:48px;padding:0 20px}

.woocommerce-cart .site-main,
.woocommerce-cart .content-area{max-width:1280px;margin:0 auto}
.woocommerce-cart .entry-content,
.woocommerce-cart .woocommerce{background:transparent}
.woocommerce-cart table.shop_table{border:1px solid #e4ebfb !important;border-radius:24px !important;overflow:hidden;background:#fff;box-shadow:0 16px 34px rgba(15,38,95,.07)}
.woocommerce-cart table.shop_table th,
.woocommerce-cart table.shop_table td{padding:18px 16px !important;border-color:#edf2fb !important}
.woocommerce-cart .product-name a{color:#1d4ed8;font-weight:700;text-decoration:none}
.woocommerce-cart .product-name a:hover{text-decoration:underline}
.woocommerce-cart .product-quantity .qty{min-height:44px;border:1px solid #d6e1f7;border-radius:12px;padding:8px 10px}
.woocommerce-cart .cart_totals,
.woocommerce-cart .wc-proceed-to-checkout,
.woocommerce-cart .cart-collaterals .cart_totals{background:#fff;border:1px solid #e4ebfb;border-radius:24px;padding:24px;box-shadow:0 16px 34px rgba(15,38,95,.07)}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button{border-radius:16px !important;font-weight:800 !important}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{background:#2563eb !important;color:#fff !important;box-shadow:0 16px 30px rgba(37,99,235,.24)}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button:hover{background:#1d4ed8 !important;color:#fff !important}
.woocommerce-cart .actions .coupon .input-text{min-height:46px;border:1px solid #d6e1f7;border-radius:12px;padding:10px 12px}
.woocommerce-cart .shop_table .product-thumbnail img{border-radius:16px;background:#eff6ff;padding:10px}
.woocommerce-cart .cart-empty,
.woocommerce-cart .return-to-shop{max-width:780px;margin:24px auto;text-align:center}

@media (max-width: 1024px){
  .tpt-integrated-header__inner{flex-wrap:wrap}
  .tpt-integrated-header__nav{order:3;flex-basis:100%;justify-content:flex-start;overflow:auto}
  .tpt-inline-menu{gap:18px;flex-wrap:nowrap;padding-bottom:4px}
}
@media (max-width: 767px){
  .tpt-integrated-header__inner{padding:12px 14px;gap:12px}
  .tpt-integrated-header__actions{width:100%;justify-content:space-between}
  .tpt-header-cta{min-height:44px;padding:0 16px}
}


/* Theme-integrated single detail */
.tpt-esim-shell-page{background:#f5f7fb;padding:24px 0 64px}
.tpt-esim-single-wrap{max-width:1280px;margin:0 auto;padding:0 24px}

/* WooCommerce Cart/Block Cart styling */
.woocommerce-cart .wc-block-cart,
.woocommerce-cart .wc-block-components-sidebar,
.woocommerce-cart .wc-block-cart-items,
.woocommerce-cart .wp-block-woocommerce-cart{color:#0f2350}
.woocommerce-cart .wp-block-woocommerce-cart{max-width:1280px;margin:0 auto;padding:24px}
.woocommerce-cart .wc-block-cart{display:grid;grid-template-columns:minmax(0,1fr) 380px;gap:24px;align-items:start}
.woocommerce-cart .wc-block-cart .wc-block-cart-items,
.woocommerce-cart .wc-block-cart__sidebar{background:#fff;border:1px solid #e4ebfb;border-radius:24px;padding:24px;box-shadow:0 16px 34px rgba(15,38,95,.07)}
.woocommerce-cart .wc-block-components-product-name{color:#1d4ed8 !important;font-weight:700;text-decoration:none}
.woocommerce-cart .wc-block-components-product-name:hover{text-decoration:underline}
.woocommerce-cart .wc-block-components-product-metadata,
.woocommerce-cart .wc-block-components-product-price,
.woocommerce-cart .wc-block-components-totals-item__label,
.woocommerce-cart .wc-block-components-totals-item__value{color:#0f2350}
.woocommerce-cart .wc-block-components-quantity-selector{border:1px solid #d6e1f7;border-radius:12px;overflow:hidden}
.woocommerce-cart .wc-block-components-quantity-selector input{border:0 !important;box-shadow:none !important}
.woocommerce-cart .wc-block-components-product-image img{border-radius:16px;background:#eff6ff;padding:10px}
.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-cart .wc-block-components-button,
.woocommerce-cart .wc-block-cart__submit-container a{background:#2563eb !important;color:#fff !important;border-radius:16px !important;border:0 !important;box-shadow:0 16px 30px rgba(37,99,235,.24);font-weight:800;padding:16px 22px !important}
.woocommerce-cart .wc-block-cart__submit-button:hover,
.woocommerce-cart .wc-block-components-button:hover,
.woocommerce-cart .wc-block-cart__submit-container a:hover{background:#1d4ed8 !important;color:#fff !important}
.woocommerce-cart .wc-block-components-totals-wrapper,
.woocommerce-cart .wc-block-components-panel{border-color:#edf2fb !important}
.woocommerce-cart .wc-block-components-notice-banner{border-radius:16px;border-color:#d6e1f7}
@media (max-width: 980px){
  .woocommerce-cart .wc-block-cart{grid-template-columns:1fr}
  .woocommerce-cart .wp-block-woocommerce-cart{padding:16px}
  .tpt-esim-single-wrap{padding:0 16px}
}


/* Shared menu bar for eSIM detail/cart pages */
.tpt-site-menu-bar{max-width:1280px;margin:0 auto 18px;padding:0 24px}
.tpt-site-menu-bar__inner{display:flex;align-items:center;justify-content:space-between;gap:20px;background:#fff;border:1px solid #e4ebfb;border-radius:22px;padding:14px 18px;box-shadow:0 16px 34px rgba(15,38,95,.07)}
.tpt-site-menu-bar__nav{flex:1;min-width:0}
.tpt-site-menu-list{display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0;flex-wrap:wrap}
.tpt-site-menu-list li{margin:0;padding:0;position:relative}
.tpt-site-menu-list a{color:#0f2350;text-decoration:none;font-weight:700;font-size:.97rem}
.tpt-site-menu-list a:hover{color:#2563eb}
.tpt-site-menu-list .sub-menu{display:none;position:absolute;top:100%;left:0;background:#fff;border:1px solid #dbe6ff;border-radius:14px;padding:10px 0;min-width:220px;box-shadow:0 18px 36px rgba(15,23,42,.08);z-index:20}
.tpt-site-menu-list li:hover>.sub-menu{display:block}
.tpt-site-menu-list .sub-menu li a{display:block;padding:8px 14px}
.tpt-site-menu-bar__cta{min-height:48px;white-space:nowrap}

/* Detail/cart pages should use theme header without extra cart icon */
body.single-product .site-header .cart-contents,
body.single-product .site-header .header-cart,
body.single-product .site-header .ast-site-header-cart,
body.single-product .site-header .site-header-cart,
body.single-product .site-header .wcmenucart,
body.single-product .site-header .widget_shopping_cart,
body.woocommerce-cart .site-header .cart-contents,
body.woocommerce-cart .site-header .header-cart,
body.woocommerce-cart .site-header .ast-site-header-cart,
body.woocommerce-cart .site-header .site-header-cart,
body.woocommerce-cart .site-header .wcmenucart,
body.woocommerce-cart .site-header .widget_shopping_cart{display:none!important}

/* Cart page refinement */
body.woocommerce-cart{background:#f5f7fb}
.woocommerce-cart .wp-block-woocommerce-cart{max-width:1280px!important;margin:0 auto!important;padding:0 24px 56px!important}
.woocommerce-cart .wc-block-cart{grid-template-columns:minmax(0,1fr) minmax(320px,420px)!important;gap:28px!important;align-items:start!important}
.woocommerce-cart .wc-block-cart .wc-block-cart-items,
.woocommerce-cart .wc-block-cart__sidebar{background:#fff;border:1px solid #e4ebfb;border-radius:24px;padding:24px;box-shadow:0 16px 34px rgba(15,38,95,.07)}
.woocommerce-cart .wc-block-cart__submit-container{margin-top:20px}
.woocommerce-cart .wc-block-cart__submit-button,
.woocommerce-cart .wc-block-components-button{width:100%;justify-content:center}
.woocommerce-cart .wc-block-components-sidebar-layout{display:block!important}
.woocommerce-cart .wc-block-components-sidebar{position:sticky;top:110px}
.woocommerce-cart .wc-block-components-title{font-size:1.2rem;font-weight:800;color:#0a1f54}
.woocommerce-cart .wc-block-components-product-name{font-size:1.02rem}
.woocommerce-cart .wc-block-components-product-metadata{margin-top:6px}
.woocommerce-cart .wc-block-components-quantity-selector:focus-within{box-shadow:0 0 0 4px rgba(37,99,235,.12)}
body.single-product .tpt-esim-shell-page{padding-top:18px}

@media (max-width: 980px){
  .tpt-site-menu-bar{padding:0 16px}
  .tpt-site-menu-bar__inner{flex-direction:column;align-items:stretch}
  .tpt-site-menu-list{gap:16px}
  .woocommerce-cart .wp-block-woocommerce-cart{padding:0 16px 40px!important}
  .woocommerce-cart .wc-block-cart{grid-template-columns:1fr!important}
  .woocommerce-cart .wc-block-components-sidebar{position:static}
}
