html {
  overflow-x: hidden !important;
  overflow-y: auto !important;
}

body {
  overflow-x: hidden !important;
  overflow-y: visible !important;
  height: auto !important;
}

#premium-checkout-wrapper {
  width: 1200px !important;
  max-width: 100% !important;
  margin: 0 auto !important;
  padding: 20px 0 80px !important;
  background: transparent !important;
  font-family: "Montserrat", sans-serif !important;
  position: relative !important;
  opacity: 1 !important;
}

.container,
.main-content,
#content {
  max-width: 1200px !important;
}

#premium-checkout-wrapper div,
#premium-checkout-wrapper span,
#premium-checkout-wrapper a,
#premium-checkout-wrapper li,
#premium-checkout-wrapper h1,
#premium-checkout-wrapper h2,
#premium-checkout-wrapper h3,
#premium-checkout-wrapper p,
#premium-checkout-wrapper label,
#premium-checkout-wrapper input,
#premium-checkout-wrapper textarea,
#premium-checkout-wrapper button {
  font-family: "Montserrat", sans-serif !important;
  box-sizing: border-box !important;
}

#premium-checkout-wrapper i,
#premium-checkout-wrapper .fa,
#premium-checkout-wrapper [class^="fa-"] {
  font-family: FontAwesome !important;
}

.catalog-thumb,
hr.catalog-hr,
br + form,
#content > br,
h1.h2.text-center.content-title,
h1.content-title {
  display: none !important;
}

.breadcrumb-top {
  background: transparent !important;
  border: none !important;
  margin-top: 40px !important;
  margin-bottom: 60px !important;
  padding: 0 15px !important;
  display: flex !important;
  justify-content: flex-start !important;
  gap: 12px !important;
  font-size: 15px !important;
  list-style: none !important;
  font-weight: 500 !important;
  line-height: 100% !important;
}

.breadcrumb-top li a {
  color: #000000 !important;
  text-decoration: none !important;
}

.breadcrumb-top li.sep {
  opacity: 0.3 !important;
}

.breadcrumb-top li.active {
  color: #5a7085 !important;
}

.header-section {
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  gap: 15px !important;
  margin-bottom: 50px !important;
  padding: 0 15px !important;
}

.premium-page-title {
  font-weight: 600 !important;
  color: #000000 !important;
  font-size: 33px !important;
  margin: 0 !important;
  line-height: 140% !important;
  text-align: left !important;
}

.simplecheckout-three-column {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: stretch !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: none !important;
  position: relative !important;
}

.simplecheckout-three-column
  > :not(.simplecheckout-left-column):not(.simplecheckout-right-column) {
  display: none !important;
}

.simplecheckout-left-column,
.simplecheckout-right-column {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
}

.shipping-payment-flex {
  display: flex !important;
  gap: 40px !important;
  width: 100% !important;
  align-items: stretch !important;
  margin-bottom: 0 !important;
}

@media (max-width: 991px) {
  .shipping-payment-flex {
    flex-direction: column !important;
    gap: 0 !important;
  }
}

@media (max-width: 767px) {
  .breadcrumb-top {
    margin-top: 15px !important;
    margin-bottom: 20px !important;
    justify-content: center !important;
  }

  .premium-page-title {
    font-size: 24px !important;
    text-align: center !important;
  }

  .header-section {
    align-items: center !important;
    margin-bottom: 20px !important;
  }
}

.simple-content {
  margin: 0px 15px;
}

/* Premium Min Amount Modal Styles */
#min-amount-warning {
  display: none !important;
}

.premium-min-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100000;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  font-family: "Montserrat", sans-serif !important;
}

.premium-min-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.min-modal-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
}

.min-modal-content {
  position: relative;
  background: #fff;
  width: 92%;
  max-width: 420px;
  padding: 50px 35px 45px;
  border-radius: 40px;
  text-align: center;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
  transform: scale(0.9) translateY(30px);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  overflow: hidden;
}

.premium-min-modal.is-active .min-modal-content {
  transform: scale(1) translateY(0);
}

.close-min-modal-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: none;
  border: none;
  width: 44px;
  height: 44px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
  z-index: 10;
  padding: 0 !important;
}

.close-min-modal-btn svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.close-min-modal-btn:hover svg {
  transform: rotate(90deg);
}

.min-modal-icon-container {
  position: relative;
  width: 90px;
  height: 90px;
  background: #fff7ed;
  color: #f39c12;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 38px;
  margin: 0 auto 30px;
}

.min-modal-icon-pulse {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  background: #f39c12;
  opacity: 0.2;
  animation: modalPulse 2s infinite;
}

@keyframes modalPulse {
  0% {
    transform: scale(1);
    opacity: 0.2;
  }
  70% {
    transform: scale(1.3);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 0;
  }
}

.min-modal-title {
  font-weight: 800;
  font-size: 26px;
  color: #0f172a;
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.min-modal-divider {
  width: 50px;
  height: 4px;
  background: #f39c12;
  border-radius: 2px;
  margin: 0 auto 20px;
  opacity: 0.3;
}

.min-modal-text {
  font-size: 17px;
  color: #475569;
  line-height: 1.5;
  margin-bottom: 15px;
  font-weight: 500;
}

.min-highlight {
  color: #f39c12;
  font-weight: 800;
  border-bottom: 2px solid rgba(243, 156, 18, 0.2);
}

.min-modal-subtext {
  font-size: 14px;
  color: #94a3b8;
  margin-bottom: 35px;
  line-height: 1.6;
}

.min-modal-action-btn {
  width: 100%;
  height: 58px;
  background: #f39c12;
  color: #fff;
  border: none;
  border-radius: 20px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 25px rgba(243, 156, 18, 0.25);
  transition: all 0.3s;
}

.min-modal-action-btn:hover {
  background: #e67e22;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(243, 156, 18, 0.35);
}

.min-modal-action-btn:active {
  transform: translateY(0);
}

.simplecheckout-button-center {
  width: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  margin-top: 30px !important;
  text-align: center !important;
}

#agreement_checkbox {
  width: 100% !important;
  max-width: 500px !important;
}

#agreement_checkbox label {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-family: "Montserrat", sans-serif !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #000000 !important;
  cursor: pointer !important;
  gap: 12px !important;
  margin-bottom: 15px !important;
  line-height: 1.4 !important;
  text-align: left !important;
}

#agreement_checkbox label > span:last-child {
  text-align: left !important;
}

.p-agreement-switch {
  position: relative !important;
  display: inline-block !important;
  width: 32px !important;
  height: 18px !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
}

.p-agreement-switch input {
  opacity: 0 !important;
  width: 0 !important;
  height: 0 !important;
  position: absolute !important;
  margin: 0 !important;
  pointer-events: none !important;
}

.p-switch-slider {
  position: absolute !important;
  cursor: pointer !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background-color: #e2e8f0 !important;
  transition: 0.3s !important;
  border-radius: 34px !important;
}

.p-switch-slider:before {
  position: absolute !important;
  content: "" !important;
  height: 14px !important;
  width: 14px !important;
  left: 2px !important;
  bottom: 2px !important;
  background-color: white !important;
  transition: 0.3s !important;
  border-radius: 50% !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.p-agreement-switch input:checked + .p-switch-slider {
  background-color: #2d4e6a !important;
}

.p-agreement-switch input:checked + .p-switch-slider:before {
  transform: translateX(14px) !important;
}

input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  width: 21px !important;
  height: 21px !important;
  border: none !important;
  background: #f5f5f5 !important;
  border-radius: 0 !important;
  cursor: pointer !important;
  position: relative !important;
  display: inline-block !important;
  vertical-align: middle !important;
  margin: 0 !important;
  flex-shrink: 0 !important;
  outline: none !important;
}

input[type="checkbox"]:checked::after {
  content: "\f00c" !important;
  font-family: FontAwesome !important;
  font-size: 14px !important;
  color: #000000 !important;
  position: absolute !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.btn-primary.sc_button_order_confirm {
  width: fit-content;
  border-radius: 55px;
  padding: 18px 40px;
  background-color: #8ec0ed;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.btn-primary.sc_button_order_confirm:hover {
  background-color: #8ec0ed;
  transform: translateY(-2px);
}

.btn-primary.sc_button_order_confirm span {
  font-weight: 600;
  font-size: 15px;
}

a.agree {
  text-decoration: underline;
  color: #000;
}
.premium-terms-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100001;
  opacity: 0;
  pointer-events: none;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  padding: 20px;
}

.premium-terms-modal.is-active {
  opacity: 1;
  pointer-events: auto;
}

.terms-modal-bg {
  position: absolute;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.7);
  transition: opacity 0.4s ease;
}

.terms-modal-content {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 900px;
  max-height: 90vh;
  border-radius: 35px;
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.2);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(40px) scale(0.95);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.premium-terms-modal.is-active .terms-modal-content {
  transform: translateY(0) scale(1);
}

.terms-modal-header {
  padding: 24px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}

.terms-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.terms-modal-title {
  font-weight: 700;
  font-size: 20px;
  color: #0f172a;
  margin: 0;
}

.close-terms-modal-btn {
  background: none !important;
  border: none !important;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0 !important;
  transition: all 0.2s;
}

.close-terms-modal-btn svg {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}

.close-terms-modal-btn:hover svg {
  transform: rotate(90deg);
}

.terms-modal-body {
  padding: 40px;
  overflow-y: auto;
  flex: 1;
  background: #fff;
}

.terms-modal-footer {
  padding: 24px 40px;
  border-top: 1px solid #f1f5f9;
  background: #fff;
  display: flex;
  justify-content: center;
}

.terms-modal-action-btn {
  background: #8ec0ed;
  color: #fff;
  border: none;
  padding: 16px 60px;
  border-radius: 35px;
  font-weight: 700;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(142, 192, 237, 0.3);
  transition: all 0.3s;
}

.terms-modal-action-btn:hover {
  background: #7cb5e8;
  transform: translateY(-2px);
  box-shadow: 0 15px 30px rgba(142, 192, 237, 0.4);
}

/* Grid Styles inside Popup */
.conditions-container-grid {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 20px !important;
}

.condition-card-premium {
  background: #fff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 32px !important;
  box-shadow: 0 10px 40px rgba(15, 23, 42, 0.04) !important;
  padding: 50px 40px !important;
  text-align: center !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  min-height: 200px !important;
  transition: all 0.3s ease !important;
}

.condition-card-premium:hover {
  box-shadow: 0 15px 50px rgba(15, 23, 42, 0.07) !important;
}

.condition-number {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 600 !important;
  font-size: 55px !important;
  color: #d8e8f5 !important;
  line-height: 100% !important;
  margin-bottom: 15px !important;
}

.condition-text {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 500 !important;
  font-size: 15px !important;
  color: #000000 !important;
  line-height: 140% !important;
  text-align: center !important;
  margin-top: 15px !important;
}

.cond-alert {
  color: #ef4444 !important;
  font-weight: 600 !important;
}

@media (max-width: 767px) {
  .conditions-container-grid {
    grid-template-columns: 1fr !important;
  }
  .terms-modal-content {
    max-height: 95vh;
    border-radius: 25px;
  }
  .terms-modal-body {
    padding: 20px;
  }
  .terms-modal-header {
    padding: 20px;
  }
}

/* Empty Cart Styles */
.empty-cart-container {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 60px 20px !important;
  text-align: center !important;
  margin-bottom: 40px !important;
}

.empty-cart-icon {
  width: 100px !important;
  height: 100px !important;
  background: #f8fafc !important;
  border-radius: 35px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: 40px !important;
  color: #8ec0ed !important;
  margin-bottom: 25px !important;
  box-shadow: 0 10px 20px rgba(142, 192, 237, 0.1) !important;
}

.empty-cart-title {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 700 !important;
  font-size: 26px !important;
  color: #000000 !important;
  margin: 0 0 15px 0 !important;
  line-height: 1.2 !important;
}

.empty-cart-text {
  font-family: "Montserrat", sans-serif !important;
  font-weight: 500 !important;
  font-size: 16px !important;
  color: #64748b !important;
  max-width: 450px !important;
  line-height: 1.6 !important;
  margin: 0 auto 35px !important;
}

.empty-cart-container .simplecheckout-button-center {
  margin-top: 0 !important;
}
.simplecheckout-button-center.is-loading {
    cursor: not-allowed;
}
#simplecheckout_button_confirm.is-loading {
    cursor: not-allowed;
    pointer-events: none;
    position: relative;
    overflow: hidden;
    opacity: 0.85;
}

#simplecheckout_button_confirm.is-loading::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
            90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.35) 50%,
            transparent 100%
    );
    animation: btn-shimmer 1.6s ease-in-out infinite;
}

@keyframes btn-shimmer {
    0% { left: -100%; }
    100% { left: 100%; }
}

@media (max-width: 540px) {
    #agreement_checkbox label > span:last-child {
        max-width: 270px !important;
    }
}