:root{
  --gpc-green:#15a857;
  --gpc-green-soft:#ecfff5;
  --gpc-navy:#101827;
  --gpc-line:#e4e8ef;
  --gpc-muted:#667085;
  --gpc-purple:#2f13b8;
}
.gpc-open-btn{border:0;border-radius:12px;background:var(--gpc-green);color:#fff;font-weight:800;padding:14px 22px;cursor:pointer;font-size:16px;box-shadow:0 8px 20px rgba(21,168,87,.2)}
.gpc-notice{padding:14px;background:#fff4e5;border:1px solid #ffd08a;border-radius:10px}
.gpc-modal{position:fixed;inset:0;z-index:999999;display:none}
.gpc-modal.is-open{display:block}
.gpc-backdrop{position:absolute;inset:0;background:rgba(15,23,42,.44);backdrop-filter:blur(1.5px)}
.gpc-dialog{position:relative;width:min(900px,92vw);max-height:90vh;overflow:auto;margin:5vh auto;background:#fff;border-radius:26px;box-shadow:0 24px 70px rgba(0,0,0,.24)}
.gpc-close{position:sticky;float:right;top:12px;right:14px;z-index:10;width:42px;height:42px;border-radius:50%;border:1px solid var(--gpc-line);background:#fff;font-size:30px;line-height:34px;cursor:pointer}
.gpc-shell{padding:30px}
.gpc-head h2{font-size:36px;line-height:1.1;margin:0 0 24px;color:var(--gpc-navy)}
.gpc-packages{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}
.gpc-package{position:relative;text-align:left;border:2px solid var(--gpc-line);border-radius:18px;background:#fff;padding:22px;min-height:185px;cursor:pointer;transition:.18s ease;overflow:visible;color:var(--gpc-navy)}
.gpc-package:hover{transform:translateY(-1px);box-shadow:0 12px 30px rgba(16,24,39,.08)}
.gpc-package.is-selected{border-color:var(--gpc-green);background:var(--gpc-green-soft);box-shadow:0 0 0 3px rgba(21,168,87,.08)}
.gpc-package-inner{display:flex;align-items:center;gap:18px;padding-right:42px}
.gpc-image-wrap{width:105px;min-width:105px;height:105px;display:flex;align-items:center;justify-content:center;background:#fff;border-radius:14px;padding:7px}
.gpc-image-wrap img{max-width:100%;max-height:100%;object-fit:contain}
.gpc-package-copy{display:flex;flex-direction:column;gap:6px}
.gpc-package-name{font-size:21px;line-height:1.18}
.gpc-price{font-size:31px;font-weight:900;color:var(--gpc-navy)}
.gpc-price del{font-size:15px;color:#98a2b3}.gpc-price ins{text-decoration:none}
.gpc-badge{position:absolute;top:-15px;border-radius:999px;padding:8px 14px;color:#fff;font-size:13px;font-weight:900}
.gpc-badge-promo{left:20px;background:var(--gpc-purple)}
.gpc-badge-selected{right:20px;background:var(--gpc-green);display:none}
.gpc-package.is-selected .gpc-badge-selected{display:inline-block}
.gpc-package-check{position:absolute;right:20px;top:50%;transform:translateY(-50%);width:38px;height:38px;border:2px solid #cfd5df;border-radius:50%;display:grid;place-items:center;color:transparent;font-size:22px;font-weight:900}
.gpc-package.is-selected .gpc-package-check{background:var(--gpc-green);border-color:var(--gpc-green);color:#fff}
.gpc-checkout-wrap{margin-top:26px;border-top:1px solid var(--gpc-line);padding-top:24px}
.gpc-checkout-title{font-size:25px;font-weight:900;margin-bottom:16px;color:var(--gpc-navy)}
.gpc-order-form{display:grid;gap:14px}
.gpc-field{display:grid;gap:7px}
.gpc-field-row{display:grid;grid-template-columns:1fr .7fr;gap:14px}
.gpc-field label{font-weight:800;color:var(--gpc-navy);font-size:14px}
.gpc-field label span{color:#d92d20}.gpc-field label small{font-weight:500;color:var(--gpc-muted)}
.gpc-field input,.gpc-field select{width:100%;box-sizing:border-box;border:1.5px solid #d8dee8;border-radius:11px;background:#fff;color:var(--gpc-navy);font:inherit;padding:13px 14px;outline:none;min-height:48px}
.gpc-field input:focus,.gpc-field select:focus{border-color:var(--gpc-green);box-shadow:0 0 0 3px rgba(21,168,87,.09)}
.gpc-field input[readonly]{background:#f8fafc;color:#475467}
.gpc-cod-box{display:grid;gap:4px;padding:14px 16px;background:#f8fafc;border:1px solid #e7ebf0;border-radius:12px;color:var(--gpc-navy)}
.gpc-cod-box span{color:var(--gpc-muted);font-size:13px;line-height:1.4}
.gpc-total-box{display:grid;gap:10px;padding:16px 18px;background:#f8fafc;border:1px solid #e6edf4;border-radius:16px;margin-top:4px}
.gpc-total-row{display:flex;justify-content:space-between;gap:20px;align-items:flex-start;color:var(--gpc-navy)}
.gpc-total-row span{color:var(--gpc-muted);font-weight:700;font-size:14px}
.gpc-total-row strong{font-size:16px;font-weight:900;color:var(--gpc-navy);text-align:right;white-space:nowrap}
.gpc-total-row.is-grand{padding-top:10px;border-top:1px solid #e3e8ee}
.gpc-total-row.is-grand span{font-size:15px;color:var(--gpc-navy)}
.gpc-total-row.is-grand strong{font-size:21px;color:var(--gpc-green)}
.gpc-status{min-height:20px;font-weight:700;color:var(--gpc-green)}
.gpc-status.is-error{color:#c62828}.gpc-status.is-success{color:var(--gpc-green)}
.gpc-submit{width:100%;border:0;border-radius:12px;background:var(--gpc-green);color:#fff;font-size:17px;font-weight:900;padding:16px 20px;cursor:pointer}
.gpc-submit:disabled{opacity:.7;cursor:wait}
.gpc-modal-open{overflow:hidden!important}

/* Thank-you order summary */
.gpc-order-summary{max-width:760px;margin:24px auto;background:#fff;border:1px solid #e9ecef;border-radius:18px;padding:24px;box-shadow:0 10px 30px rgba(0,0,0,.06);font-family:inherit;color:#1f2937}
.gpc-order-summary--empty{text-align:center;padding:22px;color:#6b7280}
.gpc-order-summary__head{display:flex;align-items:flex-start;justify-content:space-between;gap:18px;padding-bottom:18px;border-bottom:1px solid #eef0f2}
.gpc-order-summary__eyebrow{font-size:12px;font-weight:800;letter-spacing:.08em;color:#6b7280;margin-bottom:4px}
.gpc-order-summary__head h3{margin:0;font-size:24px;line-height:1.2}
.gpc-order-summary__status{background:#ecfdf3;color:#067647;border-radius:999px;padding:7px 11px;font-size:12px;font-weight:800;white-space:nowrap}
.gpc-order-summary__items{padding:10px 0}
.gpc-order-summary__item{display:grid;grid-template-columns:64px 1fr auto;gap:14px;align-items:center;padding:14px 0;border-bottom:1px solid #f0f1f2}
.gpc-order-summary__thumb{width:64px;height:64px;border-radius:12px;overflow:hidden;background:#f7f7f8}
.gpc-order-summary__thumb img{width:100%;height:100%;object-fit:cover}
.gpc-order-summary__name{display:flex;flex-direction:column;gap:4px}
.gpc-order-summary__name span{font-size:13px;color:#6b7280}
.gpc-order-summary__price{font-weight:800;white-space:nowrap}
.gpc-order-summary__totals{padding:10px 0 4px}
.gpc-order-summary__total-row{display:flex;justify-content:space-between;gap:20px;padding:8px 0}
.gpc-order-summary__total-row:last-child{font-size:18px;border-top:1px solid #e5e7eb;margin-top:6px;padding-top:14px}
.gpc-order-summary__section-title{margin-top:18px;margin-bottom:12px;font-size:16px;font-weight:900;color:var(--gpc-navy)}
.gpc-order-summary__customer-wrap{margin-top:6px}
.gpc-order-summary__customer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.gpc-order-summary__info-card{padding:16px 18px;background:linear-gradient(180deg,#f8fafc 0%,#f2f6fb 100%);border:1px solid #e6ecf2;border-radius:16px;display:grid;gap:6px;align-content:start}
.gpc-order-summary__info-card span{font-size:13px;font-weight:700;color:#6b7280;letter-spacing:.01em}
.gpc-order-summary__info-card strong{font-size:19px;line-height:1.4;color:#101828;font-weight:800;word-break:break-word}
.gpc-order-summary__info-card.is-address{grid-column:1 / -1}
.gpc-order-summary__info-card.is-address strong{font-size:16px;font-weight:700;line-height:1.65}

@media(max-width:780px){
  .gpc-dialog{width:calc(100vw - 24px);max-height:calc(100vh - 32px);margin:16px auto;border-radius:22px}
  .gpc-shell{padding:18px}
  .gpc-head h2{font-size:28px;margin-bottom:20px}
  .gpc-packages{grid-template-columns:1fr}
  .gpc-package{padding:18px;min-height:150px}
  .gpc-package-inner{gap:14px;padding-right:42px}
  .gpc-image-wrap{width:88px;min-width:88px;height:88px}
  .gpc-package-name{font-size:18px}.gpc-price{font-size:27px}
  .gpc-package-check{right:14px}.gpc-close{top:8px;right:8px}
  .gpc-field-row{grid-template-columns:1fr}
  .gpc-checkout-title{font-size:22px}
}
@media(max-width:600px){
  .gpc-order-summary{padding:18px;border-radius:15px}
  .gpc-order-summary__head h3{font-size:20px}
  .gpc-order-summary__item{grid-template-columns:54px 1fr}
  .gpc-order-summary__thumb{width:54px;height:54px}
  .gpc-order-summary__price{grid-column:2}
    .gpc-order-summary__customer{grid-template-columns:1fr}
  .gpc-order-summary__info-card strong{text-align:left;font-size:17px}
}

/* v1.13 shipping + payment */
.gpc-shipping-note{display:none;gap:3px;padding:12px 14px;background:#fff8e8;border:1px solid #f3d28b;border-radius:12px;color:var(--gpc-navy)}
.gpc-shipping-note.is-visible{display:grid}
.gpc-shipping-note strong{font-size:14px}.gpc-shipping-note span{font-size:13px;color:var(--gpc-muted)}
.gpc-payment-section{display:grid;gap:10px;margin-top:2px}
.gpc-payment-title{font-size:16px;font-weight:900;color:var(--gpc-navy)}
.gpc-payment-methods{display:grid;gap:10px}
.gpc-payment-method{position:relative;display:flex;align-items:center;gap:12px;padding:14px 15px;border:1.5px solid #d8dee8;border-radius:13px;background:#fff;cursor:pointer;transition:.16s ease}
.gpc-payment-method:hover{border-color:#b8c2d0}
.gpc-payment-method.is-selected{border-color:var(--gpc-green);background:var(--gpc-green-soft);box-shadow:0 0 0 3px rgba(21,168,87,.07)}
.gpc-payment-method input{position:absolute;opacity:0;pointer-events:none}
.gpc-payment-radio{width:20px;height:20px;min-width:20px;border:2px solid #b8c2d0;border-radius:50%;display:grid;place-items:center;background:#fff}
.gpc-payment-method.is-selected .gpc-payment-radio{border:6px solid var(--gpc-green)}
.gpc-payment-copy{display:grid;gap:3px;min-width:0}
.gpc-payment-copy strong{font-size:15px;color:var(--gpc-navy)}
.gpc-payment-copy span{font-size:13px;line-height:1.4;color:var(--gpc-muted)}
.gpc-payment-empty{padding:13px 15px;border:1px solid #fecaca;background:#fff1f2;border-radius:12px;color:#9f1239;font-weight:700;font-size:13px}

/* v1.14 mobile modal scroll fix — keep the last checkout button reachable */
@media(max-width:780px){
  .gpc-modal{
    height:100vh;
    height:100dvh;
    overflow:hidden;
  }
  .gpc-dialog{
    position:absolute;
    top:max(8px, env(safe-area-inset-top));
    right:12px;
    bottom:max(8px, env(safe-area-inset-bottom));
    left:12px;
    width:auto;
    max-height:none;
    margin:0;
    overflow-y:auto;
    overflow-x:hidden;
    -webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;
    touch-action:pan-y;
  }
  .gpc-shell{
    /* Extra room below the submit button for Android browser bars / gesture area. */
    padding:18px 18px calc(110px + env(safe-area-inset-bottom));
  }
  .gpc-submit{
    margin-bottom:8px;
  }
}
