.cart-drawer-viewport{
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cart-drawer-pages{
  display: flex;
  width: 200%;
  transition: transform .35s ease;
  will-change: transform;
}

.cart-drawer-pages.page-confirmed{
  transform: translateX(-50%);
}

.cart-drawer-page{
  width: 50%;
  flex: 0 0 50%;
  padding: 0;
  box-sizing: border-box;
}

/* OFFCANVAS SHELL */
#cartDrawer{
  width: min(460px, 100vw);
  border-left: 0;
  background:
    linear-gradient(180deg, rgba(252,154,29,.10) 0%, rgba(0,88,168,.05) 100%),
    #f7f9fc;
  box-shadow: -16px 0 40px rgba(0,0,0,.14);
}

#cartDrawer .offcanvas-header{
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(0,88,168,.10);
  background:
    linear-gradient(135deg, #0058a8 0%, #fc9a1d 100%);
  color: #fff;
}

#cartDrawer .btn-close{
  filter: brightness(0) invert(1);
  opacity: .95;
}

#cartDrawer .offcanvas-body{
  padding: 14px 0 18px;
}

/* TITLE / TOP MESSAGE */
.cart-title{
  margin: 0;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #fff;
}

.cart-title-your{
  color: rgba(255,255,255,.90);
}

.cart-title-cart{
  color: #fff4d6;
}

.cart-instruction{
  background: linear-gradient(135deg, rgba(252,154,29,.12), rgba(0,88,168,.08));
  color: #17406a;
  border: 1px solid rgba(0,88,168,.10);
  border-radius: 16px;
  padding: 12px 14px;
  font-size: 13px;
  line-height: 1.45;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(0,88,168,.05);
}

/* PAGE SPACING */
.cart-page-inner{
  padding: 0 14px 16px;
}

/* SECTION CARDS */
.cart-section{
  background: #fff;
  border: 1px solid rgba(0,88,168,.10);
  border-radius: 20px;
  margin-bottom: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(16,24,40,.06);
}

.cart-section-head{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 16px 12px;
  background: linear-gradient(180deg, rgba(0,88,168,.05) 0%, rgba(252,154,29,.04) 100%);
  border-bottom: 1px solid rgba(0,88,168,.08);
}

.cart-section-title{
  font-size: 15px;
  font-weight: 800;
  color: #0f3e74;
  display: flex;
  align-items: center;
  letter-spacing: .01em;
}

.cart-section-title i{
  color: #fc9a1d;
}

.cart-section-sub{
  font-size: 12px;
  color: #63758a;
  line-height: 1.4;
  font-weight: 500;
}

.cart-section-content{
  padding: 15px 16px 16px;
}

/* FORM ELEMENTS */
#cartDrawer .form-label{
  font-size: 12px;
  font-weight: 800 !important;
  color: #234b74;
  margin-bottom: 7px;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#cartDrawer .form-text{
  font-size: 12px;
  color: #6b7280;
}

#cartDrawer .form-control,
#cartDrawer .form-select{
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid #d7e0ea;
  background: #fbfdff;
  color: #1f2937;
  font-size: 14px;
  box-shadow: none;
}

#cartDrawer textarea.form-control{
  min-height: 92px;
  resize: vertical;
}

#cartDrawer .form-control::placeholder{
  color: #99a3b2;
}

#cartDrawer .form-control:focus,
#cartDrawer .form-select:focus{
  border-color: rgba(0,88,168,.45);
  box-shadow: 0 0 0 4px rgba(0,88,168,.10);
  background: #fff;
}

.province-picker-input{
  font-weight: 600;
  cursor: pointer;
}

.btn-province{
  border-radius: 14px !important;
  border: 1px solid #0058a8 !important;
  background: #0058a8 !important;
  color: #fff !important;
  font-weight: 700;
  padding-inline: 16px;
}

.btn-province:hover{
  background: #004987 !important;
  border-color: #004987 !important;
  color: #fff !important;
}

/* RADIO / COURIER */
#cartDrawer .form-check{
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  background: #f8fbff;
  border: 1px solid #d9e7f5;
  border-radius: 14px;
  padding: 10px 12px;
}

#cartDrawer .form-check-input{
  margin-top: 0;
  border-color: #7aa7d6;
}

#cartDrawer .form-check-input:checked{
  background-color: #0058a8;
  border-color: #0058a8;
}

#cartDrawer .form-check-label{
  font-weight: 700;
  color: #21466d;
}

/* ALERTS / NOTICES */
#ppOnlyNotice{
  border-radius: 14px;
  border: 1px solid rgba(215,51,64,.18);
  background: rgba(215,51,64,.08);
  color: #9d2230;
  font-weight: 600;
}

/* CART ITEM LIST */
#cartList .border,
.confirmed-order-item{
  border: 1px solid #e7edf3 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: 0 6px 14px rgba(16,24,40,.04);
}

#cartList .fw-semibold,
.confirmed-order-item-name{
  color: #173b63;
  font-weight: 800 !important;
}

#cartList .text-muted,
.confirmed-order-item-meta{
  color: #728094 !important;
  font-size: 12px;
}

#cartList .btn-outline-secondary{
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 10px;
  border-color: #c9d7e6;
  color: #234b74;
  font-weight: 800;
}

#cartList .btn-outline-secondary:hover{
  background: #0058a8;
  border-color: #0058a8;
  color: #fff;
}

/* SUMMARY */
.cart-summary-row{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0,88,168,.08), rgba(252,154,29,.10));
  border: 1px solid rgba(0,88,168,.08);
}

.cart-summary-label{
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  color: #355579;
}

.cart-summary-value{
  font-size: 28px;
  line-height: 1;
  font-weight: 900;
  color: #0058a8;
}

.cart-page-note{
  font-size: 13px;
  line-height: 1.55;
  color: #66758a !important;
  background: #f7fafc;
  border: 1px dashed #d7e2ee;
  border-radius: 14px;
  padding: 12px 14px;
}

/* BUTTONS */
#cartDrawer .btn-primary{
  background: linear-gradient(135deg, #0058a8 0%, #fc9a1d 100%);
  border: none;
  border-radius: 15px;
  min-height: 48px;
  font-weight: 800;
  box-shadow: 0 12px 24px rgba(0,88,168,.20);
}

#cartDrawer .btn-primary:hover{
  filter: brightness(.98);
}

#cartDrawer .btn-outline-danger{
  border-radius: 14px;
  min-height: 44px;
  font-weight: 700;
  border-color: rgba(215,51,64,.35);
  color: #b42332;
  background: #fff;
}

#cartDrawer .btn-outline-danger:hover{
  background: #d73340;
  border-color: #d73340;
  color: #fff;
}

/* CONFIRMED PAGE */
.confirmed-ref-box{
  background: linear-gradient(135deg, rgba(252,154,29,.10), rgba(0,88,168,.06));
  border: 1px solid rgba(252,154,29,.18);
  border-radius: 18px;
  padding: 14px 16px;
}

.confirmed-order-ref{
  font-size: 14px;
  font-weight: 800;
  color: #173b63;
}

.confirmed-items-wrap{
  max-height: 260px;
  overflow: auto;
  padding-right: 2px;
}

/* MOBILE */
@media (max-width: 575.98px){
  #cartDrawer{
    width: 100vw;
  }

  #cartDrawer .offcanvas-header{
    padding: 16px 16px 12px;
  }

  .cart-page-inner{
    padding: 0 12px 14px;
  }

  .cart-section-head,
  .cart-section-content{
    padding-left: 14px;
    padding-right: 14px;
  }

  .cart-summary-value{
    font-size: 24px;
  }
}

.cart-page-note{
  font-size: 13px;
  line-height: 1.45;
}

.confirmed-items-wrap{
  max-height: 260px;
  overflow: auto;
}

.confirmed-ref-box{
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 12px;
  padding: 12px;
}