/**
 * OCS Simple Two-Step Checkout Styles
 */

/* Step Indicator */
.ocs-step-indicator {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.ocs-step-indicator .step {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 24px;
  margin: 0 15px;
  border-radius: 25px;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
}

.ocs-step-indicator .step:not(:last-child)::after {
  content: "→";
  position: absolute;
  right: -25px;
  color: #ccc;
  font-size: 18px;
}

.ocs-step-indicator .step.active {
  background: #54c3f3;
  color: white;
}

.ocs-step-indicator .step.completed {
  background: #28a745;
  color: white;
}

.ocs-step-indicator .step-number {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
}

.ocs-step-indicator .step.completed .step-number::before {
  content: "✓";
  font-size: 14px;
}

/* Step Content */
.ocs-step {
  display: none;
}

.ocs-step.ocs-step-active {
  display: block;
}

.container-wrap {
  background-color: #e8e8e8 !important;
}

.ocs-step.ocs-step-active {
  max-width: 1100px;
  margin: auto;
}

/* Authentication Container */
.ocs-auth-container {
  max-width: 1000px;
  margin: 0 auto;
  background: #fff;
  border-radius: 20px;
  padding: 40px;
}

/* Two Column Layout */
.ocs-auth-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Left Column - Information */
.ocs-auth-info-column {
  background-image: url("https://shoply.pro/wp-content/uploads/2025/02/Asset-21.png");
  background-size: cover; /* or 'contain' if you want the whole image visible */
  background-position: center center;
  background-repeat: no-repeat;
  padding: 20px;
  height: 100%;
}

.ocs-auth-info-column h3 {
  margin-bottom: 20px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1.3;
  padding: 20px;
}

.ocs-product-info {
  margin-top: 10px;
  padding: 20px;
  border-radius: 16px;
  border-left: 8px solid #8adcff;
  background: #ffffff45;
}

.ocs-product-info p {
  margin: 0;
  color: #ffffff;
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding-bottom: 5px !important;
}

.ocs-product-name {
  margin: 0;
  color: #ffffff;
  font-size: 38px !important;
  line-height: 1 !important;
  font-weight: bold !important;
}

.ocs-auth-forms-column {
  padding: 20px;
}

/* Google Sign-in */
.ocs-google-signin-wrapper {
  margin-bottom: 25px;
}

.ocs-google-signin-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 24px;
  border: 2px solid #03a9f4;
  border-radius: 4px;
  background: #f2f2f2;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 24px;
  font-weight: 600;
  color: #1f1f1f;
  text-decoration: none;
}

.icns-blw {
  position: absolute;
  bottom: 100px;
}

.ocs-google-signin-btn:hover {
  background: #e8e8e8;
  border-color: #d0d0d0;
  color: #1f1f1f;
}

.ocs-separator {
  text-align: center;
  color: #666;
  font-size: 14px;
  margin: 20px 0;
  position: relative;
}

.woocommerce #payment #place_order,
.woocommerce-page #payment #place_order {
  float: right;
  background-color: #97d619 !important;
  padding: 20px 60px !important;
  width:100%
}

.ocs-separator::before,
.ocs-separator::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 30px);
  height: 1px;
  background: #e0e0e0;
}

.ocs-separator::before {
  left: 0;
}
.ocs-separator::after {
  right: 0;
}

/* Auth Tabs */
.ocs-auth-tabs {
  display: flex;
  margin-bottom: 25px;
  border-radius: 4px;
  overflow: hidden;
}

.ocs-tab {
  flex: 1;
  background: #f8f8f8;
  border: none;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 500;
  color: #666;
  transition: all 0.3s ease;
}

.payment_methods {
  background-color: #daedfd;
  border-radius: 30px;
}

.lst-title {
  margin-top: 20px !important;
}

label[for="payment_method_vivawallet_native"] {
  display: flex;
  justify-content: center;
}

.ocs-step ocs-step-active {
  max-width: 1100px;
  margin: auto;
}

.ocs-tab:hover {
  background: #ddeff7;
}

.ocs-tab.active {
  background: #ddeff7;
}

/* Tab Content */
.ocs-tab-content {
  display: none;
}

.ocs-tab-content.active {
  display: block;
}

/* Forms */
.form-row {
  margin-bottom: 20px;
}

.form-row label {
  display: block;
  margin-bottom: 6px;
  font-weight: 500;
  color: #333;
}

.form-row input[type="text"],
.form-row input[type="email"],
.form-row input[type="password"] {
  width: 100%;
  padding: 12px 15px;
  border: 2px solid #e0e0e0;
  border-radius: 4px;
  font-size: 16px;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.form-row input:focus {
  outline: none;
  border-color: #54c3f3;
  box-shadow: 0 0 0 3px rgba(84, 195, 243, 0.1);
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  font-size: 14px;
}

.checkbox-label input[type="checkbox"] {
  margin: 0;
}

.required {
  color: #e74c3c;
}

/* Buttons */
.ocs-button {
  width: 100%;
  background: #54c3f3;
  color: white;
  border: none;
  padding: 15px 30px;
  border-radius: 4px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.ocs-button:hover {
  background: #45a3d3;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(84, 195, 243, 0.3);
}

.ocs-button:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* Messages */
.ocs-form-messages {
  margin-bottom: 20px;
  padding: 15px;
  border-radius: 4px;
  display: none;
  font-size: 14px;
  line-height: 1.5;
}

.ocs-form-messages.error {
  background: #ffe6e6;
  border: 1px solid #ff9999;
  color: #cc0000;
}

.ocs-form-messages.success {
  background: #e6ffe6;
  border: 1px solid #99ff99;
  color: #006600;
}

/* Welcome Message */
.ocs-welcome-message {
  background: #e8f5e8;
  border: 1px solid #d4edda;
  border-radius: 4px;
  padding: 20px;
  margin-bottom: 25px;
  color: #155724;
  text-align: center;
}

.ocs-welcome-message h4 {
  margin: 0 0 8px 0;
  font-size: 18px;
}

.ocs-welcome-message p {
  margin: 0;
  font-size: 14px;
}

.col-1 {
  padding: 30px;
  background-color: #fff;
  border-radius: 20px;
}

.col-2 {
  background-color: transparent;
}

table tbody tr:nth-child(even) {
  background-color: transparent !important;
}

.woocommerce-billing-fields {
  padding: 15px;
  background-color: #f5f5f5;
  padding-right: 15px !important;
  border-radius: 20px;
  margin-bottom: 20px;
}
.container-wrap input[type="text"],
.container-wrap input[type="email"],
.container-wrap input[type="password"],
.container-wrap input[type="tel"],
.container-wrap input[type="url"],
.container-wrap input[type="search"],
.container-wrap input[type="date"],
.container-wrap input[type="number"],
.container-wrap textarea,
.container-wrap select,
body > #review_form_wrapper.modal input[type="text"],
body > #review_form_wrapper.modal textarea,
body > #review_form_wrapper.modal select,
body > #review_form_wrapper.modal input[type="email"],
.select2-container--default .select2-selection--single,
body[data-fancy-form-rcs="1"]
  .select2-container--default
  .select2-selection--single,
.woocommerce input#coupon_code,
.material.woocommerce-page[data-form-style="default"] input#coupon_code,
body[data-form-style="minimal"] input[type="text"],
body[data-form-style="minimal"] textarea,
body[data-form-style="minimal"] input[type="email"],
body[data-form-style="minimal"] input[type="password"],
body[data-form-style="minimal"] input[type="tel"],
body[data-form-style="minimal"] input[type="url"],
body[data-form-style="minimal"] input[type="search"],
body[data-form-style="minimal"] input[type="date"],
body[data-form-style="minimal"] input[type="number"],
body[data-form-style="minimal"] select {
  border-color: #dbdbdb !important;
}

.ocs-product-price {
  font-size: 26px;
  line-height: 1.3;
}

.order-review th {
  text-transform: none !important;
}

.recurring-totals th {
  font-size: 22px !important;
}

.order-total,
.order-total th {
  background-color: transparent !important;
}

table th {
  background: transparent !important;
}

.woocommerce-checkout-review-order-table .product-container {
  background-color: transparent;
  padding: 0 !important;
}

.container-wrap input[type="text"],
.container-wrap input[type="email"],
.container-wrap input[type="password"],
.container-wrap input[type="tel"],
.container-wrap input[type="url"],
.container-wrap input[type="search"],
.container-wrap input[type="date"],
.container-wrap input[type="number"],
.container-wrap textarea,
.container-wrap select,
body > #review_form_wrapper.modal input[type="text"],
body > #review_form_wrapper.modal textarea,
body > #review_form_wrapper.modal select,
body > #review_form_wrapper.modal input[type="email"],
.select2-container--default .select2-selection--single,
body[data-fancy-form-rcs="1"]
  .select2-container--default
  .select2-selection--single,
.woocommerce input#coupon_code,
.material.woocommerce-page[data-form-style="default"] input#coupon_code,
body[data-form-style="minimal"] input[type="text"],
body[data-form-style="minimal"] textarea,
body[data-form-style="minimal"] input[type="email"],
body[data-form-style="minimal"] input[type="password"],
body[data-form-style="minimal"] input[type="tel"],
body[data-form-style="minimal"] input[type="url"],
body[data-form-style="minimal"] input[type="search"],
body[data-form-style="minimal"] input[type="date"],
body[data-form-style="minimal"] input[type="number"],
body[data-form-style="minimal"] select {
  background-color: #ffffffde !important;
}

.checkout #order_review .order-review tbody tr:last-child {
  padding-bottom: 5px;
}

.checkout #order_review .order-review tbody tr {
  padding-left: 10px;
}

.checkout #order_review .order-review tbody tr {
  padding-left: 10px;
}
.checkout #order_review .order-review tbody tr:first-child {
  padding-left: 10px;
  padding-top: 0;
}

.wc_payment_method.payment_method_vivawallet_native {
  padding-top: 20px;
}

.woocommerce .payment_box p {
  padding-left: 0;
}

.ocs-simplified-checkout .col2-set {
  display: block;
}

.ocs-simplified-checkout .col-1,
.ocs-simplified-checkout .col-2 {
  width: 100%;
  float: none;
  margin-bottom: 25px;
}

.woocommerce-order {
  padding: 40px;
  background-color: #ffffff;
  border-radius: 20px;
}

.ocs-simplified-checkout .woocommerce-billing-fields h3,
.ocs-simplified-checkout .woocommerce-shipping-fields h3 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #333;
  border-bottom: 2px solid #54c3f3;
  padding-bottom: 10px;
}

/* Responsive */
@media (max-width: 1000px) {
  .ocs-auth-container {
    padding: 20px;
    margin: 0;
  }

  .col-1 {
    padding: 0 !important;
    background-color: transparent;
  }

  .nectar-responsive-text.font_size_desktop_16px.nectar-link-underline-effect {
    max-width: 300px;
  }

  .icns-blw {
    display: none;
  }

  .ocs-auth-two-columns {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .ocs-auth-info-column h3 {
    font-size: 20px;
    text-align: center;
  }

  .ocs-product-info {
    text-align: center;
    margin-top: 20px;
  }

  .ocs-auth-tabs {
    flex-direction: column;
  }

  .ocs-tab {
    border-bottom: 1px solid #e0e0e0;
  }

  .ocs-tab:last-child {
    border-bottom: none;
  }
}

/* Loading States */
.ocs-button.loading {
  position: relative;
  color: transparent;
}

.ocs-button.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 20px;
  height: 20px;
  border: 2px solid transparent;
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: translate(-50%, -50%) rotate(0deg);
  }
  100% {
    transform: translate(-50%, -50%) rotate(360deg);
  }
}
