/**
 * 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;
}

/* 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: 30px;
  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;
}

.ocs-product-name {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.4;
  font-weight: bold;
}

.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 #ebf1f2;
  border-radius: 4px;
  background: #f2f2f2;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 16px;
  font-weight: 600;
  color: #1f1f1f;
  text-decoration: none;
}

.icns-blw {
  position: absolute;
  bottom: 50px;
}

.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: #8bc34a !important;
  padding: 20px 60px !important;
}

.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;
}

.ocs-tab:hover {
  background: #54c3f3;
  color: white;
}

.ocs-tab.active {
  background: #54c3f3;
  color: white;
}

/* 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;
}

/* Simplified Checkout Styling */
.ocs-simplified-checkout {
  background: #fff;
  padding: 10px;
  border-radius: 15px;
}

.col-1 {
  padding: 30px;
}

.col-2 {
  background-color: #f3f3f3;
  padding: 20px;
  border-radius: 0 12px;
}

table tbody tr:nth-child(even),
.checkout #order_review .order-review tr th {
  background: none !important;
}

.checkout #order_review .order-review tbody tr.order-total > * {
  background: none !important;
}

.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: 768px) {
  .ocs-auth-container {
    padding: 20px;
    margin: 0;
  }

  .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);
  }
}
