/* ==========================================================================
   Lalpila Checkout Skin — Reference Palette (Blue)
   Mobile-First | Plain CSS (No Variables) | Dropdown & Height Fixes
   ========================================================================== */

/* Outer Shell Container */
.otp-checkout-app {
  width: 100%;
  max-width: 480px;
  margin: 10px auto 40px auto;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1px solid #E1EAEE;
  box-shadow: 0 16px 45px rgba(30, 65, 125, 0.08);
  overflow: hidden;
  box-sizing: border-box;
  font-family: inherit;
}

/* Suppress intermediate native OpenCart buttons inside steps 3, 4, 5 */
#mount-shipping-address .buttons,
#mount-shipping-address #button-shipping-address,
#mount-shipping-address #button-guest-shipping,
#mount-shipping-address .btn-primary,
#mount-shipping-method .buttons,
#mount-shipping-method #button-shipping-method,
#mount-shipping-method .btn-primary,
#mount-payment-method .buttons,
#mount-payment-method #button-payment-method,
#mount-payment-method .btn-primary {
  display: none !important;
}

@media (max-width: 480px) {
  .otp-checkout-app {
    border-radius: 12px;
    margin: 5px auto 30px auto;
  }
}

/* --- Redesigned Modern Header (Prompt Requirement 5) --- */
.otp-header-bar {
  padding: 14px 18px 10px 18px;
  background: rgba(255, 255, 255, 0.98);
  border-bottom: 1px solid #E6EEF1;
  position: sticky;
  top: 0;
  z-index: 20;
}

.otp-header-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.otp-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.otp-header-back-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #334155;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  padding: 0;
}

.otp-header-back-btn:hover {
  border-color: #0B72A4;
  color: #0B72A4;
  background: #F0F8FB;
}

.otp-header-title-box {
  display: flex;
  flex-direction: column;
}

.otp-header-step-pill {
  font-size: 10px;
  font-weight: 700;
  color: #0B72A4;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.otp-header-step-title {
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
  margin: 0;
  line-height: 1.2;
}

.otp-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.otp-header-upcoming-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #64748B;
  background: #F8FAFC;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid #E2E8F0;
  white-space: nowrap;
}

.otp-header-upcoming-label {
  font-weight: 600;
  color: #94A3B8;
}

.otp-header-upcoming-name {
  font-weight: 700;
  color: #334155;
}

.otp-header-home-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid #CBD5E1;
  background: #FFFFFF;
  color: #64748B;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 13px;
  text-decoration: none;
}

.otp-header-home-btn:hover {
  border-color: #0B72A4;
  color: #0B72A4;
  background: #F0F8FB;
}

.otp-progress-bar-bg {
  height: 5px;
  background: #E8F4F7;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
}

.otp-progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #0CAECF, #0B72A4, #1C417D);
  width: 20%;
  transition: width 0.35s ease;
  border-radius: 6px;
}

/* --- Content Area --- */
.otp-content-area {
  padding: 20px 20px;
}

@media (min-width: 768px) {
  .otp-content-area {
    padding: 24px 28px;
  }
}

/* Step Views */
.otp-view-section {
  display: none;
  animation: otpSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.otp-view-section.active {
  display: block;
}

@keyframes otpSlideUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

.otp-view-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 4px 0;
  color: #17212B;
  letter-spacing: -0.3px;
}

.otp-view-subtitle {
  font-size: 13px;
  color: #647482;
  margin: 0 0 18px 0;
  line-height: 1.4;
}

/* --- Floating Labels & Form Inputs --- */
.otp-content-area .form-group,
.otp-checkout-container .form-group,
#otpCheckoutContainer .form-group,
#otpCheckoutPopupOverlay .form-group {
  position: relative !important;
  margin-top: 18px !important;
  margin-bottom: 22px !important;
  clear: both !important;
  display: block !important;
}

.otp-content-area .form-group.has-error,
.otp-checkout-container .form-group.has-error,
#otpCheckoutContainer .form-group.has-error,
#otpCheckoutPopupOverlay .form-group.has-error {
  margin-bottom: 26px !important;
}

.otp-content-area .text-danger,
.otp-checkout-container .text-danger,
#otpCheckoutContainer .text-danger,
#otpCheckoutPopupOverlay .text-danger,
.form-group .text-danger,
.otp-login-field .text-danger {
  display: block !important;
  clear: both !important;
  margin-top: 6px !important;
  margin-bottom: 2px !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
  color: #D92D20 !important;
  font-weight: 600 !important;
  position: static !important;
  width: 100% !important;
  text-align: left !important;
  z-index: 1 !important;
}

/* Default & Has-Value State: Label is ALWAYS positioned on the top border notch */
.otp-content-area .form-group > label.control-label,
.otp-checkout-container .form-group > label.control-label,
#otpCheckoutContainer .form-group > label.control-label,
#otpCheckoutPopupOverlay .form-group > label.control-label,
.otp-content-area label.control-label,
.otp-checkout-container label.control-label,
#otpCheckoutContainer label.control-label,
#otpCheckoutPopupOverlay label.control-label {
  position: absolute !important;
  top: -8px !important;
  left: 10px !important;
  display: inline-block !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #17212B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
  padding: 0px 8px !important;
  background: #FFFFFF !important;
  border-radius: 4px !important;
  line-height: 1.2 !important;
  pointer-events: none !important;
  transition: all 0.18s cubic-bezier(0.4, 0, 0.2, 1) !important;
  z-index: 10 !important;
  max-width: calc(100% - 20px) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

/* Empty & Unfocused State: Label behaves like an internal placeholder ONLY when empty */
.otp-content-area .form-group.is-empty:not(.is-focused):not(:focus-within) > label.control-label,
.otp-checkout-container .form-group.is-empty:not(.is-focused):not(:focus-within) > label.control-label,
#otpCheckoutContainer .form-group.is-empty:not(.is-focused):not(:focus-within) > label.control-label,
#otpCheckoutPopupOverlay .form-group.is-empty:not(.is-focused):not(:focus-within) > label.control-label {
  top: 13px !important;
  left: 14px !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #64748B !important;
  text-transform: capitalize !important;
  letter-spacing: 0px !important;
  background: transparent !important;
  padding: 0 4px !important;
  z-index: 2 !important;
}

/* Phone input group label & Select labels MUST ALWAYS stay on the top notch */
.otp-content-area .form-group:has(.otp-phone-input-group) > label.control-label,
.otp-checkout-container .form-group:has(.otp-phone-input-group) > label.control-label,
#otpCheckoutContainer .form-group:has(.otp-phone-input-group) > label.control-label,
#otpCheckoutPopupOverlay .form-group:has(.otp-phone-input-group) > label.control-label,
.otp-content-area .form-group:has(select) > label.control-label,
.otp-checkout-container .form-group:has(select) > label.control-label,
#otpCheckoutContainer .form-group:has(select) > label.control-label,
#otpCheckoutPopupOverlay .form-group:has(select) > label.control-label,
.otp-content-area #group-phone > label.control-label,
.otp-content-area #group-shipping-telephone > label.control-label {
  top: -8px !important;
  left: 10px !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #17212B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.3px !important;
  margin: 0 !important;
  padding: 0px 8px !important;
  background: #FFFFFF !important;
  line-height: 1.2 !important;
  z-index: 10 !important;
}

/* Focused Highlight Color */
.otp-content-area .form-group.is-focused > label.control-label,
.otp-content-area .form-group:focus-within > label.control-label,
.otp-checkout-container .form-group.is-focused > label.control-label,
.otp-checkout-container .form-group:focus-within > label.control-label,
#otpCheckoutContainer .form-group.is-focused > label.control-label,
#otpCheckoutContainer .form-group:focus-within > label.control-label,
#otpCheckoutPopupOverlay .form-group.is-focused > label.control-label,
#otpCheckoutPopupOverlay .form-group:focus-within > label.control-label,
.otp-content-area .form-group:has(.otp-phone-input-group).is-focused > label.control-label,
.otp-checkout-container .form-group:has(.otp-phone-input-group).is-focused > label.control-label,
#otpCheckoutContainer .form-group:has(.otp-phone-input-group).is-focused > label.control-label,
#otpCheckoutPopupOverlay .form-group:has(.otp-phone-input-group).is-focused > label.control-label,
.otp-content-area #group-phone.is-focused > label.control-label,
.otp-content-area #group-shipping-telephone.is-focused > label.control-label {
  color: #0B72A4 !important;
}

/* Remove ALL red '*' required indicators (:before, :after, OpenCart core, Journal 3) */
.otp-content-area .form-group.required > label:before,
.otp-content-area .form-group.required > label:after,
.otp-content-area .form-group.required > label.control-label:before,
.otp-content-area .form-group.required > label.control-label:after,
.otp-content-area .form-group.required label:before,
.otp-content-area .form-group.required label:after,
.otp-content-area .required label:before,
.otp-content-area .required label:after,
.otp-content-area .required .control-label:before,
.otp-content-area .required .control-label:after,
.otp-checkout-container .form-group.required > label:before,
.otp-checkout-container .form-group.required > label:after,
.otp-checkout-container .form-group.required > label.control-label:before,
.otp-checkout-container .form-group.required > label.control-label:after,
.otp-checkout-container .form-group.required label:before,
.otp-checkout-container .form-group.required label:after,
.otp-checkout-container .required label:before,
.otp-checkout-container .required label:after,
.otp-checkout-container .required .control-label:before,
.otp-checkout-container .required .control-label:after,
#otpCheckoutContainer .form-group.required > label:before,
#otpCheckoutContainer .form-group.required > label:after,
#otpCheckoutContainer .form-group.required > label.control-label:before,
#otpCheckoutContainer .form-group.required > label.control-label:after,
#otpCheckoutContainer .form-group.required label:before,
#otpCheckoutContainer .form-group.required label:after,
#otpCheckoutContainer .required label:before,
#otpCheckoutContainer .required label:after,
#otpCheckoutContainer .required .control-label:before,
#otpCheckoutContainer .required .control-label:after,
#otpCheckoutPopupOverlay .form-group.required > label:before,
#otpCheckoutPopupOverlay .form-group.required > label:after,
#otpCheckoutPopupOverlay .form-group.required > label.control-label:before,
#otpCheckoutPopupOverlay .form-group.required > label.control-label:after,
#otpCheckoutPopupOverlay .form-group.required label:before,
#otpCheckoutPopupOverlay .form-group.required label:after,
#otpCheckoutPopupOverlay .required label:before,
#otpCheckoutPopupOverlay .required label:after,
#otpCheckoutPopupOverlay .required .control-label:before,
#otpCheckoutPopupOverlay .required .control-label:after,
.form-group.required > label.control-label:before,
.form-group.required > label.control-label:after,
.form-group.required label:before,
.form-group.required label:after,
.form-group.required .control-label:before,
.form-group.required .control-label:after,
.required label:before,
.required label:after,
.required .control-label:before,
.required .control-label:after {
  content: "" !important;
  display: none !important;
}

/* Eradicate any placeholder text in all browsers */
.otp-content-area input::placeholder,
.otp-content-area textarea::placeholder,
.otp-checkout-container input::placeholder,
.otp-checkout-container textarea::placeholder,
#otpCheckoutContainer input::placeholder,
#otpCheckoutContainer textarea::placeholder,
#otpCheckoutPopupOverlay input::placeholder,
#otpCheckoutPopupOverlay textarea::placeholder,
.otp-content-area input::-webkit-input-placeholder,
.otp-content-area textarea::-webkit-input-placeholder,
.otp-checkout-container input::-webkit-input-placeholder,
.otp-checkout-container textarea::-webkit-input-placeholder,
#otpCheckoutContainer input::-webkit-input-placeholder,
#otpCheckoutContainer textarea::-webkit-input-placeholder,
#otpCheckoutPopupOverlay input::-webkit-input-placeholder,
#otpCheckoutPopupOverlay textarea::-webkit-input-placeholder {
  color: transparent !important;
  opacity: 0 !important;
  display: none !important;
}

/* Error state label & border */
.otp-content-area .form-group.has-error > label.control-label,
.otp-checkout-container .form-group.has-error > label.control-label,
#otpCheckoutContainer .form-group.has-error > label.control-label,
#otpCheckoutPopupOverlay .form-group.has-error > label.control-label {
  color: #DC2626 !important;
}
.otp-content-area .form-group.has-error .form-control,
.otp-checkout-container .form-group.has-error .form-control,
#otpCheckoutContainer .form-group.has-error .form-control,
#otpCheckoutPopupOverlay .form-group.has-error .form-control {
  border-color: #DC2626 !important;
  background: #FFFFFF !important;
}

/* All inputs, selects, textareas WHITE background */
.otp-content-area .form-control,
.otp-content-area input[type="text"],
.otp-content-area input[type="email"],
.otp-content-area input[type="tel"],
.otp-content-area input[type="password"],
.otp-content-area input[type="number"],
.otp-content-area select,
.otp-checkout-container .form-control,
.otp-checkout-skin .form-control,
#otpCheckoutContainer .form-control,
#otpCheckoutPopupOverlay .form-control {
  width: 100%;
  height: 46px !important;
  min-height: 46px !important;
  max-height: 46px !important;
  line-height: 22px !important;
  padding: 10px 14px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #DCE7EB !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #17212B !important;
  outline: none;
  box-sizing: border-box !important;
  transition: all 0.2s ease;
  box-shadow: none !important;
  vertical-align: middle;
}

.otp-content-area textarea.form-control,
.otp-content-area textarea,
.otp-checkout-container textarea,
#otpCheckoutContainer textarea,
#otpCheckoutPopupOverlay textarea {
  width: 100%;
  height: auto !important;
  min-height: 80px !important;
  max-height: none !important;
  line-height: 1.4 !important;
  padding: 10px 14px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #DCE7EB !important;
  border-radius: 10px !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #17212B !important;
  outline: none;
  box-sizing: border-box !important;
}

.otp-content-area .form-control:hover,
.otp-content-area select:hover,
.otp-content-area textarea:hover {
  border-color: #C3D7DF !important;
}

.otp-content-area .form-control:focus,
.otp-content-area select:focus,
.otp-content-area textarea:focus {
  border-color: #0B72A4 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(11, 114, 164, 0.14) !important;
}

/* Custom Select Styling for all dropdowns (Country, State/Region, Phone Prefix, Address) */
.otp-content-area select.form-control,
.otp-content-area select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23536773' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 14px 14px !important;
  padding-right: 38px !important;
  cursor: pointer !important;
  overflow: visible !important;
}

/* Phone Prefix Select */
.otp-content-area select.otp-phone-prefix,
.otp-content-area #profile-country-code {
  width: 92px !important;
  min-width: 92px !important;
  max-width: 92px !important;
  padding: 10px 24px 10px 8px !important;
  background-position: right 6px center !important;
  background-size: 12px 12px !important;
  font-weight: 700 !important;
  text-align: center !important;
  flex-shrink: 0 !important;
}

.otp-content-area select option {
  padding: 10px 14px;
  font-size: 14px;
  color: #17212B;
  background: #FFFFFF;
}

/* Embedded Login Widget styling */
.otp-login-widget-mount .otp-login-widget {
  margin: 0 auto;
}

.otp-login-widget-mount .otp-login-card {
  box-shadow: none;
  border: none;
  padding: 0;
  max-width: 100%;
  background: transparent;
}

/* Option Cards (GST Choice, Addresses, Gateways) */
.otp-content-area .radio,
.otp-content-area .checkbox,
.otp-option-card {
  background: #FFFFFF;
  border: 1.5px solid #DDE7EB;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
}

.otp-content-area .radio:hover,
.otp-content-area .checkbox:hover,
.otp-option-card:hover {
  border-color: #BCD5DF;
}

.otp-content-area .radio.selected,
.otp-content-area .radio:has(input[type="radio"]:checked),
.otp-option-card.selected {
  border-color: #0B72A4;
  background: linear-gradient(90deg, #F4FBFD, #FBFEFF);
  box-shadow: 0 0 0 1px #0B72A4, 0 4px 12px rgba(11, 114, 164, 0.06);
}

.otp-content-area input[type="radio"],
.otp-content-area input[type="checkbox"] {
  accent-color: #0B72A4;
  cursor: pointer;
}

/* Review / Summary Cards */
.otp-review-card,
.otp-summary-card,
.otp-price-breakup {
  background: #F8FAFB;
  border: 1px solid #DFE7EA;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 14px;
}

.otp-review-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.otp-review-card-title {
  font-size: 11px;
  font-weight: 800;
  color: #647482;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.otp-review-card-body {
  font-size: 13px;
  color: #17212B;
  line-height: 1.45;
}

/* Action Buttons (CTAs) & Back Links - Vertically Stacked (Prompt Requirement 1) */
.otp-action-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid #E6EEF1;
  width: 100%;
  box-sizing: border-box;
}

.otp-btn-main {
  width: 100%;
  padding: 14px 20px;
  background: linear-gradient(135deg, #0B72A4, #0B92B9);
  color: #FFFFFF !important;
  font-size: 14px;
  font-weight: 700;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 5px 14px rgba(11, 114, 164, 0.20);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  box-sizing: border-box;
  text-decoration: none;
}

.otp-btn-main:hover {
  background: linear-gradient(135deg, #1C417D, #0B72A4);
  box-shadow: 0 6px 18px rgba(11, 114, 164, 0.28);
  color: #FFFFFF !important;
}

/* Compact Unified Phone Input Box (Matching Reference Design) */
.otp-phone-unified-box,
.otp-phone-input-group {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  background: #FFFFFF !important;
  border: 1.5px solid #DCE7EB !important;
  border-radius: 10px !important;
  box-sizing: border-box !important;
  padding: 0 !important;
  margin: 0 !important;
  transition: all 0.2s ease !important;
  position: relative !important;
  overflow: visible !important;
  cursor: text !important;
  pointer-events: auto !important;
  z-index: 1 !important;
}

.otp-phone-unified-box:hover,
.otp-phone-input-group:hover {
  border-color: #C3D7DF !important;
}

.otp-phone-unified-box:focus-within,
.otp-phone-input-group:focus-within,
.otp-phone-unified-box.is-focused,
.otp-phone-input-group.is-focused {
  border-color: #0B72A4 !important;
  background: #FFFFFF !important;
  box-shadow: 0 0 0 3px rgba(11, 114, 164, 0.14) !important;
}

.otp-phone-unified-box .otp-custom-country-select,
.otp-phone-input-group .otp-custom-country-select {
  position: relative !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
  cursor: pointer !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

.otp-phone-unified-box .otp-country-selected-btn,
.otp-phone-input-group .otp-country-selected-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 100% !important;
  min-height: 44px !important;
  padding: 0 8px 0 12px !important;
  background: transparent !important;
  border: none !important;
  border-radius: 9px 0 0 9px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #17212B !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  white-space: nowrap !important;
  outline: none !important;
  box-shadow: none !important;
  pointer-events: auto !important;
  user-select: none !important;
}

.otp-phone-unified-box .otp-country-selected-btn:hover,
.otp-phone-unified-box .otp-country-selected-btn:focus,
.otp-phone-input-group .otp-country-selected-btn:hover,
.otp-phone-input-group .otp-country-selected-btn:focus {
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.otp-login-country-flag {
  display: none !important;
}

.otp-dropdown-arrow-icon,
.otp-dropdown-arrow {
  font-size: 10px !important;
  color: #64748B !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  transition: transform 0.2s ease !important;
  pointer-events: none !important;
}

.otp-custom-country-select.open .otp-dropdown-arrow-icon,
.otp-custom-country-select.open .otp-dropdown-arrow {
  transform: rotate(180deg) !important;
}

.otp-country-code-display {
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #17212B !important;
  pointer-events: none !important;
}

.otp-phone-divider {
  width: 1px !important;
  height: 22px !important;
  background: #DCE7EB !important;
  flex: 0 0 1px !important;
  margin: 0 4px !important;
  pointer-events: none !important;
}

.otp-phone-unified-box input[type="tel"],
.otp-phone-unified-box .otp-phone-number-input,
.otp-phone-input-group input[type="tel"],
.otp-phone-input-group .form-control {
  display: block !important;
  flex: 1 1 0% !important;
  min-width: 0 !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 44px !important;
  max-height: 46px !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 12px !important;
  margin: 0 !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #17212B !important;
  box-sizing: border-box !important;
  line-height: 44px !important;
  cursor: text !important;
  pointer-events: auto !important;
  position: relative !important;
  z-index: 2 !important;
}

.otp-phone-unified-box input[type="tel"]::placeholder,
.otp-phone-input-group input[type="tel"]::placeholder,
.otp-login-phone-row input[type="tel"]::placeholder {
  color: #94A3B8 !important;
  opacity: 0.8 !important;
  display: block !important;
  font-size: 13.5px !important;
}

.otp-phone-unified-box input[type="tel"]:focus,
.otp-phone-input-group input[type="tel"]:focus,
.otp-phone-input-group .form-control:focus {
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
  background: transparent !important;
}

/* Dotted Underline Back Link (Requirement 1 & 2) */
.checkout-back-link {
  color: #536773 !important;
  text-decoration: underline dotted !important;
  text-underline-offset: 4px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  background: none !important;
  border: none !important;
  padding: 6px 12px !important;
  transition: color 0.15s ease !important;
  white-space: nowrap !important;
  text-align: center !important;
  margin: 0 auto !important;
}

.checkout-back-link:hover {
  color: #0B72A4 !important;
  text-decoration: underline !important;
}

/* Delivery Address Cards (Requirement 3 & 4) */
#mount-shipping-address .radio,
#mount-shipping-address .checkbox,
#mount-shipping-address input[name="shipping_address"],
#mount-shipping-address label:has(input[name="shipping_address"]),
#mount-shipping-address select[name="address_id"],
#mount-shipping-address .form-group:has(select[name="address_id"]),
#mount-shipping-address > .form-group > label.control-label:has(+ #shipping-existing) {
  display: none !important;
}

/* Hide OpenCart native confirmation tables */
#mount-confirm > .table-responsive,
#mount-confirm > .table,
#mount-confirm > table,
#mount-confirm .table-responsive,
#mount-confirm table {
  display: none !important;
}

.otp-review-section-divider {
  display: flex;
  align-items: center;
  text-align: center;
  margin: 20px 0 16px 0;
  color: #64748B;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.otp-review-section-divider::before,
.otp-review-section-divider::after {
  content: '';
  flex: 1;
  border-bottom: 1px solid #E2E8F0;
}

.otp-review-section-divider span {
  padding: 0 12px;
}

.otp-delivery-card-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

.otp-addr-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: block;
  position: relative;
}

.otp-addr-card:hover {
  border-color: #CBD5E1;
}

.otp-addr-card.selected,
.otp-addr-card:has(input[type="radio"]:checked) {
  border-color: #0B72A4;
  background: #F8FBFC;
  box-shadow: 0 0 0 1px #0B72A4, 0 4px 12px rgba(11, 114, 164, 0.06);
}

.otp-addr-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.otp-addr-radio-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
  cursor: pointer;
}

.otp-addr-badge-primary {
  font-size: 11px;
  font-weight: 600;
  color: #1D4ED8;
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  padding: 2px 8px;
  border-radius: 9999px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
}

.otp-addr-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-addr-icon {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748B;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
  font-size: 12px;
}

.btn-addr-icon:hover {
  background: #EFF6FF;
  color: #0B72A4;
  border-color: #BFDBFE;
}

.btn-addr-icon.btn-addr-remove:hover {
  background: #FEF2F2;
  color: #DC2626;
  border-color: #FECACA;
}

.otp-addr-details {
  padding-left: 24px;
  font-size: 13px;
  color: #475569;
  line-height: 1.45;
}

.otp-btn-add-new-addr {
  background: #FFFFFF;
  border: 1.5px dashed #0B72A4;
  border-radius: 12px;
  padding: 12px 16px;
  color: #0B72A4;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  box-sizing: border-box;
  margin-bottom: 16px;
}

.otp-btn-add-new-addr:hover {
  background: #F0F9FF;
  border-color: #0284C7;
}

/* Shipping & Payment Method Cards (Matching Reference Designs) */
.otp-method-card {
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  border-radius: 12px;
  padding: 14px 16px;
  margin-bottom: 12px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
}

.otp-method-card:hover {
  border-color: #CBD5E1;
}

.otp-method-card.selected,
.otp-method-card:has(input[type="radio"]:checked) {
  border-color: #0B72A4;
  background: #F8FBFC;
  box-shadow: 0 0 0 1px #0B72A4, 0 4px 12px rgba(11, 114, 164, 0.05);
}

.otp-method-card-left {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  flex: 1;
}

.otp-method-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.otp-method-title {
  font-size: 14px;
  font-weight: 700;
  color: #0F172A;
  margin: 0;
}

.otp-method-desc {
  font-size: 12px;
  color: #64748B;
  line-height: 1.4;
}

.otp-method-card-right {
  display: flex;
  align-items: center;
  padding-left: 12px;
  flex-shrink: 0;
}

.otp-method-fee-badge {
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}

.otp-method-benefit-pill {
  display: inline-block;
  margin-top: 4px;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #EDF6FA;
  color: #0B72A4;
}

/* Order Summary Totals & Coupon Box (Prompt Requirements 9, 14) */
.otp-totals-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 14px;
  padding: 16px;
  margin-bottom: 16px;
}

.otp-totals-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 12px;
}

.otp-totals-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 0;
  border-bottom: 1px dashed #F1F5F9;
  color: #475569;
}

.otp-totals-row.grand-total {
  border-top: 1.5px solid #0F172A;
  border-bottom: none;
  padding-top: 10px;
  margin-top: 6px;
  font-size: 16px;
  font-weight: 800;
  color: #0F172A;
}

.otp-coupon-box {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}

.otp-coupon-box input {
  flex: 1;
  height: 38px;
  border: 1px solid #CBD5E1;
  border-radius: 8px;
  padding: 0 12px;
  font-size: 13px;
}

.otp-coupon-box button {
  height: 38px;
  padding: 0 16px;
  background: #0F172A;
  color: #FFFFFF;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}

/* Quantity Stepper [ - ] [ 1 ] [ + ] (Requirement 4: Compact) */
.otp-qty-stepper {
  display: inline-flex;
  align-items: center;
  border: 1px solid #CBD5E1;
  border-radius: 6px;
  overflow: hidden;
  background: #FFFFFF;
  height: 24px;
}

.otp-qty-btn {
  width: 22px;
  height: 24px;
  border: none;
  background: #F8FAFC;
  color: #334155;
  font-weight: 700;
  font-size: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease;
  padding: 0;
}

.otp-qty-btn:hover {
  background: #E2E8F0;
}

.otp-qty-val {
  width: 26px;
  height: 24px;
  border: none;
  border-left: 1px solid #E2E8F0;
  border-right: 1px solid #E2E8F0;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #0F172A;
  padding: 0;
  background: #FFFFFF;
}

/* Final Review Cards & Cart Details Card (Matching Prototype) */
.otp-target-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 10px;
}

.otp-target-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.otp-target-label {
  font-size: 10.5px;
  font-weight: 800;
  color: #64748B;
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.otp-target-actions a {
  font-size: 11.5px;
  font-weight: 700;
  color: #0B72A4;
  text-decoration: none;
  margin-left: 10px;
}

.otp-target-actions a:hover {
  text-decoration: underline;
}

.otp-target-name {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin-bottom: 3px;
}

.otp-target-addr {
  font-size: 12px;
  color: #475569;
  line-height: 1.4;
}

/* Review Page: Single-Row Shipping & Payment Cards (Matching Component Design) */
.otp-method-row-card {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 10px 14px !important;
  margin-bottom: 8px !important;
  box-sizing: border-box !important;
  min-height: 44px !important;
}

.otp-method-row-left {
  display: flex !important;
  align-items: center !important;
  gap: 14px !important;
  flex: 1 !important;
  min-width: 0 !important;
}

.otp-method-row-label {
  font-size: 11px !important;
  font-weight: 800 !important;
  color: #64748B !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  white-space: nowrap !important;
  min-width: 120px !important;
}

.otp-method-row-title {
  font-size: 13px !important;
  font-weight: 700 !important;
  color: #0F172A !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.otp-method-row-right {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  flex-shrink: 0 !important;
}

.otp-method-row-fee {
  font-size: 12px !important;
  font-weight: 700 !important;
  color: #047857 !important;
  white-space: nowrap !important;
}

.otp-method-row-change {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #0B72A4 !important;
  text-decoration: none !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}

.otp-method-row-change:hover {
  text-decoration: underline !important;
}

@media (max-width: 480px) {
  .otp-method-row-card {
    padding: 8px 10px !important;
    gap: 8px !important;
  }
  .otp-method-row-left {
    gap: 8px !important;
  }
  .otp-method-row-label {
    min-width: 95px !important;
    font-size: 9.5px !important;
  }
  .otp-method-row-title {
    font-size: 12px !important;
  }
  .otp-method-row-right {
    gap: 8px !important;
  }
  .otp-method-row-fee {
    font-size: 11.5px !important;
  }
  .otp-method-row-change {
    font-size: 11px !important;
  }
}

/* Badges & 2-Column Grid */
.otp-addr-badge-gst {
  display: inline-flex;
  align-items: center;
  font-size: 8px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
  background: #F1F5F9 !important;
  border: 1px solid #CBD5E1 !important;
  color: #475569 !important;
  padding: 1px 5px !important;
  border-radius: 4px !important;
  margin-left: 6px !important;
  vertical-align: middle !important;
}

.otp-form-row-2col {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start !important;
  gap: 12px !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-bottom: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.otp-form-row-2col .otp-form-col {
  flex: 1 1 50% !important;
  width: 50% !important;
  max-width: 50% !important;
  min-width: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 16px !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-start !important;
}

.otp-form-row-2col .otp-form-col:before,
.otp-form-row-2col .otp-form-col:after {
  display: none !important;
  content: none !important;
}

.otp-form-row-2col .otp-form-col label.control-label {
  display: flex !important;
  align-items: center !important;
  width: 100% !important;
  height: 20px !important;
  min-height: 20px !important;
  max-height: 20px !important;
  line-height: 20px !important;
  margin-top: 0 !important;
  margin-bottom: 6px !important;
  padding: 0 !important;
  float: none !important;
  text-align: left !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  color: #475569 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.5px !important;
}

.otp-form-row-2col .otp-form-col .col-sm-10,
.otp-form-row-2col .otp-form-col .col-sm-12,
.otp-form-row-2col .otp-form-col .col-sm-2 {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  float: none !important;
}

.otp-form-row-2col .otp-form-col .form-control,
.otp-form-row-2col .otp-form-col select.form-control,
.otp-form-row-2col .otp-form-col input.form-control {
  width: 100% !important;
  height: 44px !important;
  min-height: 44px !important;
  max-height: 44px !important;
  line-height: normal !important;
  padding: 8px 12px !important;
  font-size: 13.5px !important;
  display: block !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

@media (max-width: 480px) {
  .otp-form-row-2col {
    flex-direction: column !important;
    gap: 0 !important;
  }
  .otp-form-row-2col .otp-form-col {
    flex: 1 1 100% !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}

#profile-fullname,
input[name="firstname"],
input[name="company"] {
  text-transform: capitalize;
}

.otp-cart-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.otp-cart-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.otp-cart-img-box {
  width: 52px;
  height: 52px;
  border-radius: 8px;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.otp-cart-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.otp-cart-item-info {
  flex: 1;
}

.otp-cart-item-title {
  font-size: 13px;
  font-weight: 700;
  color: #0F172A;
  margin: 0 0 2px 0;
  line-height: 1.3;
}

/* Variant / Option Tag Pills (Requirement 9) */
.otp-variant-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 3px 0;
}

.otp-variant-tag {
  background: #F1F5F9;
  color: #475569;
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  border: 1px solid #E2E8F0;
  display: inline-block;
  line-height: 1.3;
}

.otp-cart-item-price-calc {
  font-size: 11.5px;
  color: #64748B;
  font-weight: 600;
  margin-top: 2px;
}

.otp-cart-item-price {
  font-size: 13.5px;
  font-weight: 800;
  color: #0F172A;
}

.otp-cart-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid #F1F5F9;
}

.otp-cart-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.otp-cart-links a {
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  cursor: pointer;
}

.otp-cart-links a.link-wishlist {
  color: #0B72A4;
}

.otp-cart-links a.link-remove {
  color: #DC2626;
}

.otp-link-sep {
  color: #CBD5E1;
  font-size: 11px;
}

/* Loading Spinners */
.otp-spinner-box {
  padding: 35px 20px;
  text-align: center;
  color: #647482;
  font-size: 14px;
  font-weight: 500;
}

.otp-spinner-box i {
  color: #0B72A4;
  margin-right: 8px;
  font-size: 18px;
}

/* Native OpenCart elements inside mounts & Final Make Payment Button */
#mount-confirm,
#mount-confirm .buttons {
  margin-top: 16px !important;
  padding-top: 0 !important;
  border-top: none !important;
  display: block !important;
}

#mount-confirm .pull-right {
  float: none !important;
  width: 100% !important;
}

#mount-confirm .buttons .btn-primary,
#mount-confirm input[type="button"].btn-primary,
#mount-confirm input[type="submit"].btn-primary,
#mount-confirm button.btn-primary,
#mount-confirm #button-confirm,
#btn-confirm-order-action {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  height: 48px !important;
  min-height: 48px !important;
  padding: 12px 20px !important;
  background: linear-gradient(135deg, #0B72A4, #0B92B9) !important;
  border: none !important;
  border-radius: 10px !important;
  color: #FFFFFF !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  letter-spacing: 0.3px !important;
  box-shadow: 0 5px 14px rgba(11, 114, 164, 0.20) !important;
  cursor: pointer !important;
  transition: all 0.2s ease !important;
  text-decoration: none !important;
}

#mount-confirm .buttons .btn-primary:hover,
#mount-confirm input[type="button"].btn-primary:hover,
#mount-confirm input[type="submit"].btn-primary:hover,
#mount-confirm button.btn-primary:hover,
#mount-confirm #button-confirm:hover,
#btn-confirm-order-action:hover {
  background: linear-gradient(135deg, #1C417D, #0B72A4) !important;
  box-shadow: 0 8px 20px rgba(11, 114, 164, 0.28) !important;
  transform: translateY(-1px) !important;
}

/* Validation Errors: ONLY active when .has-error is dynamically added */
.otp-content-area .has-error .form-control,
.otp-content-area .has-error select,
.otp-content-area .has-error input {
  border-color: #D92D20 !important;
  background: #FFF8F8 !important;
}

.otp-content-area .has-error .control-label {
  color: #D92D20 !important;
}

.otp-content-area .text-danger {
  color: #D92D20;
  font-size: 12px;
  font-weight: 600;
  margin-top: 4px;
}

/* ==========================================================================
   CART ITEM & SUMMARY DESIGN (Matched with cartpage-mekeover-in-popup module)
   ========================================================================== */
:root, .otp-checkout-wrapper, .cmip-summary, .cmip-list, .cmip-card {
  --cmip-primary: #2563eb;
  --cmip-primary-dark: #1d4ed8;
  --cmip-primary-light: #eff4ff;
  --cmip-danger: #e11d48;
  --cmip-danger-light: #fef1f3;
  --cmip-success: #16a34a;
  --cmip-success-light: #f0fdf4;
  --cmip-ink: #111827;
  --cmip-grey: #6b7280;
  --cmip-grey-light: #9ca3af;
  --cmip-white: #ffffff;
  --cmip-bg-soft: #f8fafc;
  --cmip-border: #e5e7eb;
  --cmip-border-strong: #cbd5e1;
  --cmip-radius-lg: 20px;
  --cmip-radius-md: 14px;
  --cmip-radius-sm: 10px;
  --cmip-radius-pill: 999px;
  --cmip-shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --cmip-touch: 44px;
}

.cmip-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.cmip-card {
  position: relative;
  background: #ffffff;
  border: 1.5px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: box-shadow 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
  box-sizing: border-box;
}

.cmip-card-oos {
  border-color: #fecdd3;
  background: #fffbfa;
}

.cmip-card.cmip-card-updating {
  opacity: 0.5;
  pointer-events: none;
}

.cmip-card-top {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.cmip-card-media {
  position: relative;
  width: 76px;
  flex: 0 0 76px;
}

.cmip-thumb {
  width: 76px;
  height: 76px;
  object-fit: contain;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  display: block;
}

.cmip-discount-badge {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  white-space: nowrap;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

.cmip-card-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
}

.cmip-name {
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  text-decoration: none;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.cmip-name:hover,
.cmip-name:focus-visible {
  color: #0b72a4;
}

/* "Selected: Large / Black" pill */
.cmip-selected-pill {
  align-self: flex-start;
  font-size: 12px;
  font-weight: 400;
  color: #64748b;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 6px 12px;
  line-height: 1.45;
  margin-top: 4px;
  display: block;
  width: 100%;
  box-sizing: border-box;
}

/* Stock status -- small, subtle, shown inline next to the price */
.cmip-stock {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.cmip-stock-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex: 0 0 auto;
}

.cmip-stock-in {
  color: #477a6f;
}

.cmip-stock-in .cmip-stock-dot {
  background: #477a6f;
}

.cmip-stock-low {
  color: #b45309;
}

.cmip-stock-low .cmip-stock-dot {
  background: #f59e0b;
}

.cmip-stock-out {
  color: #e11d48;
}

.cmip-stock-out .cmip-stock-dot {
  background: #e11d48;
}

/* Pricing Layout */
.cmip-price-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin-top: 6px;
}

.cmip-price-calc {
  font-size: 13px;
  color: #64748b;
  font-weight: 400;
  white-space: nowrap;
}

.cmip-price-row {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin-top: 2px !important;
}

.cmip-price-total {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}

.cmip-price-meta {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  margin-top: 1px !important;
}

.cmip-price-old {
  font-size: 12px !important;
  color: #94a3b8 !important;
  text-decoration: line-through !important;
}

.cmip-price-savings {
  font-size: 11.5px !important;
  font-weight: 700 !important;
  color: #16a34a !important;
}

/* Footer row: qty stepper on the left, Wishlist / Delete text links on the right */
.cmip-card-footer {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap !important;
  gap: 12px !important;
  margin-top: 10px !important;
  padding-top: 0 !important;
  border-top: none !important;
}

.cmip-qty-stepper {
  position: relative !important;
  display: inline-flex !important;
  align-items: stretch !important;
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px !important;
  overflow: hidden !important;
  height: 38px !important;
  background: #ffffff !important;
}

.cmip-qty-btn {
  width: 36px !important;
  height: 38px !important;
  border: none !important;
  background: #ffffff !important;
  color: #1e293b !important;
  font-size: 18px !important;
  font-weight: 400 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  transition: background 0.15s ease !important;
  user-select: none !important;
  padding: 0 !important;
}

.cmip-qty-btn:hover:not(:disabled) {
  background: #f8fafc !important;
}

.cmip-qty-btn:disabled {
  opacity: 0.4 !important;
  cursor: not-allowed !important;
}

.cmip-qty-value {
  min-width: 34px !important;
  height: 38px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  border-left: 1.5px solid #cbd5e1 !important;
  border-right: 1.5px solid #cbd5e1 !important;
  padding: 0 6px !important;
}

.cmip-footer-actions {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
}

.cmip-action-link {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  border: none !important;
  background: transparent !important;
  padding: 4px 2px !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #64748b !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  text-decoration: none !important;
  transition: color 0.15s ease !important;
}

.cmip-action-link svg {
  color: #64748b !important;
  stroke: #64748b !important;
  flex-shrink: 0 !important;
}

.cmip-action-link:hover,
.cmip-action-link:focus-visible {
  color: #0b72a4 !important;
}

.cmip-action-link:hover svg,
.cmip-action-link:focus-visible svg {
  color: #0b72a4 !important;
  stroke: #0b72a4 !important;
}

.cmip-action-link-danger {
  color: #e11d48 !important;
}

.cmip-action-link-danger svg {
  color: #e11d48 !important;
  stroke: #e11d48 !important;
  flex-shrink: 0 !important;
}

.cmip-action-link-danger:hover,
.cmip-action-link-danger:focus-visible {
  color: #be123c !important;
}

.cmip-action-link-danger:hover svg,
.cmip-action-link-danger:focus-visible svg {
  color: #be123c !important;
  stroke: #be123c !important;
}

.cmip-action-divider {
  width: 1px !important;
  height: 16px !important;
  background: #cbd5e1 !important;
  display: inline-block !important;
}

/* ==========================================================================
   ORDER SUMMARY & TOTALS (Matched with cartpage-mekeover-in-popup module)
   ========================================================================== */
.cmip-summary {
  background: #ffffff !important;
  border: 1.5px solid #e2e8f0 !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  padding: 24px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  box-sizing: border-box !important;
  margin-top: 14px !important;
}

.cmip-summary-heading {
  font-size: 16px !important;
  font-weight: 700 !important;
  margin: 0 0 14px !important;
  color: #111827 !important;
}

.cmip-totals-list {
  display: flex !important;
  flex-direction: column !important;
  margin-bottom: 10px !important;
}

.cmip-total-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 12px 0 !important;
  border-bottom: 1px dashed #e2e8f0 !important;
  font-size: 13.5px !important;
}

.cmip-total-row:last-child {
  border-bottom: none !important;
}

.cmip-total-title {
  color: #64748b !important;
  font-weight: 400 !important;
}

.cmip-total-text {
  font-weight: 500 !important;
  color: #1e293b !important;
}

.cmip-total-row-grand {
  background: #f8fafc !important;
  border-radius: 12px !important;
  border-bottom: none !important;
  margin: 12px 0 10px 0 !important;
  padding: 14px 16px !important;
}

.cmip-total-row-grand .cmip-total-title {
  font-size: 15px !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

.cmip-total-row-grand .cmip-total-text {
  font-size: 18px !important;
  font-weight: 700 !important;
  color: #2563eb !important;
}

.cmip-collapsible {
  border-top: 1px solid #f1f5f9 !important;
  padding: 4px 0 !important;
}

.cmip-collapsible-summary {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  list-style: none !important;
  cursor: pointer !important;
  padding: 10px 0 !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  color: #111827 !important;
  min-height: 44px !important;
  user-select: none !important;
}

.cmip-collapsible-summary::-webkit-details-marker {
  display: none !important;
}

.cmip-collapsible-chevron {
  margin-left: auto !important;
  transition: transform .2s ease !important;
  color: #6b7280 !important;
}

.cmip-collapsible[open] .cmip-collapsible-chevron {
  transform: rotate(180deg) !important;
}

.cmip-collapsible-body {
  padding: 4px 0 14px !important;
}

.cmip-reward-available {
  font-size: 12px !important;
  color: #64748b !important;
  margin: 0 0 10px !important;
}

.cmip-code-form {
  display: flex !important;
  gap: 8px !important;
  align-items: center !important;
}

.cmip-code-input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  height: 42px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  border: 1.5px solid #cbd5e1 !important;
  font-size: 13.5px !important;
  color: #111827 !important;
  background: #f8fafc !important;
  outline: none !important;
  transition: border-color 0.15s ease, background 0.15s ease !important;
}

.cmip-code-input:focus {
  border-color: #2563eb !important;
  background: #ffffff !important;
}

.cmip-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 42px !important;
  padding: 0 20px !important;
  border-radius: 999px !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  white-space: nowrap !important;
  transition: transform .12s ease, box-shadow .12s ease, background .15s ease, border-color .15s ease, color .15s ease !important;
}

.cmip-btn:active {
  transform: scale(.97) !important;
}

.cmip-btn-outline {
  background: #ffffff !important;
  border: 1.5px solid #cbd5e1 !important;
  color: #111827 !important;
}

.cmip-btn-outline:hover {
  border-color: #2563eb !important;
  color: #2563eb !important;
  background: #eff4ff !important;
}

.cmip-form-feedback {
  margin-top: 8px !important;
  font-size: 12.5px !important;
  font-weight: 500 !important;
}

.cmip-form-feedback.success {
  color: #16a34a !important;
}

.cmip-form-feedback.error {
  color: #e11d48 !important;
}

/* ==========================================================================
   1. Searchable Country Calling Code Prefix Dropdown (Closed: +91, Open: Country + Code)
   ========================================================================== */
.otp-custom-country-select {
  position: relative !important;
  flex: 0 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 100% !important;
}

.otp-country-selected-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  min-width: 62px !important;
  height: 100% !important;
  min-height: 42px !important;
  padding: 0 8px 0 12px !important;
  background: transparent !important;
  border: none !important;
  font-size: 13.5px !important;
  font-weight: 700 !important;
  color: #17212B !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
  outline: none !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

.otp-country-selected-btn:hover,
.otp-country-selected-btn:focus {
  background: transparent !important;
  border: none !important;
  outline: none !important;
}

.otp-dropdown-arrow {
  color: #64748B;
  transition: transform 0.2s ease;
}

.otp-custom-country-select.open .otp-dropdown-arrow {
  transform: rotate(180deg);
}

.otp-country-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  width: 290px;
  max-width: calc(100vw - 32px);
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.18);
  z-index: 9999;
  padding: 8px;
  box-sizing: border-box;
}

.otp-custom-country-select.open .otp-country-dropdown-menu {
  display: block;
  animation: otp-country-pop 0.15s ease-out;
}

@keyframes otp-country-pop {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

.otp-country-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  background: #F1F5F9;
  border-radius: 8px;
  margin-bottom: 6px;
}

.otp-country-search-input {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 12.5px;
  color: #0F172A;
  outline: none;
  padding: 0;
}

.otp-country-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.otp-country-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 12.5px;
  color: #334155;
  cursor: pointer;
  transition: background 0.12s ease;
}

.otp-country-item:hover,
.otp-country-item.active {
  background: #EFF6FF;
  color: #0B72A4;
}

.otp-country-item-name {
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.otp-country-item-code {
  font-weight: 700;
  color: #0B72A4;
  flex: 0 0 auto;
}

/* ==========================================================================
   2. Checkout Popup Overlay & Modal (Matching Cart Makeover UI/UX)
   ========================================================================== */
.otp-checkout-popup-overlay {
  position: fixed !important;
  inset: 0 !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  width: 100% !important;
  height: 100% !important;
  background: rgba(15, 23, 42, 0.6) !important;
  backdrop-filter: blur(6px) !important;
  -webkit-backdrop-filter: blur(6px) !important;
  z-index: 9999999 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: flex-end !important;
  box-sizing: border-box !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: opacity 0.25s ease, visibility 0.25s ease !important;
}

.otp-checkout-popup-overlay.otp-checkout-popup-open {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
}

body.otp-checkout-popup-scroll-lock {
  overflow: hidden !important;
  touch-action: none !important;
}

.otp-checkout-popup-drawer {
  position: relative !important;
  width: 100% !important;
  max-width: 480px !important;
  height: 94vh !important;
  max-height: 94vh !important;
  background: #FFFFFF !important;
  border-radius: 20px 20px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  box-shadow: 0 -10px 40px rgba(15, 23, 42, 0.18) !important;
  transform: translateY(20px) scale(0.98) !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  overflow: hidden !important;
  margin: auto !important;
}

.otp-checkout-popup-overlay.otp-checkout-popup-open .otp-checkout-popup-drawer {
  transform: translateY(0) scale(1) !important;
}

@media (min-width: 768px) {
  .otp-checkout-popup-overlay {
    align-items: center !important;
    padding: 24px !important;
  }
  .otp-checkout-popup-drawer {
    max-width: 480px !important;
    width: 100% !important;
    height: min(780px, 92vh) !important;
    max-height: 92vh !important;
    border-radius: 20px !important;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25), 0 0 0 1px rgba(226, 232, 240, 0.8) !important;
  }
}

.otp-checkout-popup-drawer .otp-checkout-app {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#checkout-checkout .otp-checkout-popup-close {
  display: none !important;
}

.otp-checkout-popup-close {
  width: 34px !important;
  height: 34px !important;
  flex: 0 0 auto !important;
  border-radius: 10px !important;
  background: #F8FAFC !important;
  border: 1px solid #E2E8F0 !important;
  color: #64748B !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: all 0.15s ease !important;
  padding: 0 !important;
}

.otp-checkout-popup-close:hover {
  background: #F1F5F9 !important;
  color: #0F172A !important;
  border-color: #CBD5E1 !important;
}

.otp-checkout-popup-body {
  flex: 1 1 auto !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

