/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

.vayapin-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 98;
}

.vayapin-checkout-button {
  position: relative;
  background-color: #4caf50;
  border: none;
  color: white;
  padding: 10px 30px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 14px;
  margin: 4px 2px;
  cursor: pointer;
  border-radius: 5px;
  display: flex;
  align-items: center;
  font-weight: 500;
}

.vayapin-button-icon {
  width: 12px;
  margin-right: 10px;
}

.vayapin-learn-more {
  display: inline-block;
  margin-top: 3px;
  font-size: 12px;
  text-decoration: underline !important;
}

#vayapin-fields-button {
  width: 100%;
}

.vayapin-container {
  position: relative;
  margin: 15px 0;
  z-index: 99;
  text-align: right;
}

.vayapin-checkout-container {
  display: flex;
  justify-content: flex-end;
  align-items: flex-end;
  flex-direction: column;
}
@media screen and (max-width: 768px) {
  .vayapin-checkout-container {
    align-items: center;
  }
}

.vayapin-checkout-dropdown {
  position: absolute;
  right: 0;
  top: 100%;
  min-width: 350px;
  width: 350px;
  z-index: 999;
  border-radius: 3px;
  margin-top: 5px;
}

@media (max-width: 768px) {
  .vayapin-checkout-dropdown {
    position: fixed;
    right: 10px;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    min-width: auto;
    max-width: 400px;
    margin: 0 auto;
  }
}

.vayapin-checkout-dropdown-header {
  background-color: #f2f2f2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 20px;
  border-top-left-radius: 3px;
  border-top-right-radius: 3px;
}

.vayapin-checkout-dropdown-close {
  position: absolute;
  right: 15px;
  top: 10px;
  font-size: 20px;
  cursor: pointer;
}

.vayapin-checkout-dropdown-header h2 {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 0;
  color: #303030;
}

.vayapin-checkout-dropdown-header img {
  margin-bottom: -3px;
}

.vayapin-checkout-dropdown-header span {
  cursor: pointer;
  font-size: 22px;
}

.vayapin-checkout-dropdown-body {
  background-color: #ffffff;
  border: 1px solid #f2f2f2;
  border-top: none;
  padding: 20px;
  padding-bottom: 0px;
  border-radius: 3px;
}

.vayapin-form-input {
  width: 100%;
  padding: 5px 10px !important;
  margin-bottom: 10px;
  border: 1px solid #f2f2f2;
  border-radius: 3px !important;
}

.vayapin-checkout-button-inside {
  padding: 10px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vayapin-select2 {
  width: 100%;
}

.select2-selection--single {
  background-color: #f4f4f4 !important;
  border-radius: 3px !important;
}

.vayapin-form-label {
  margin-bottom: 10px;
}

.mt-5 {
  margin-top: 5px;
}

.mt-10 {
  margin-top: 10px;
}

.mt-20 {
  margin-top: 20px;
}

.woocommerce-billing-fields__field-wrapper {
  margin-top: 60px;
}

.flex {
  display: flex;
}

.flex > #vayapin_input {
  width: 100%;
}

.vayapin-country {
  width: 30px;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.country-select-container {
  position: relative;
  width: 100%;
}

.vayapin-country-search {
  width: 100%;
  padding: 8px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 5px;
  font-size: 14px;
}

.vayapin-country-search:focus {
  outline: none;
  border-color: #3eb489;
  box-shadow: 0 0 0 2px rgba(62, 180, 137, 0.2);
}

.country-select.inside input,
.country-select.inside input[type="text"] {
  padding-left: 40px;
}

.vayapin-description {
  font-size: 14px;
  margin-top: 20px;
}

.text-center {
  text-align: center;
}

.vayapin-input-name {
  border-left: none !important;
}

.vayapin-logo-checkout {
  width: 80px;
  margin-top: 10px;
}

.vayapin-error-text {
  color: rgb(206, 87, 87);
  font-size: 13px;
}

/* VayaPin Checkbox Styles */
.vayapin-checkbox-container {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  border: 1px solid #e9ecef;
}

.vayapin-checkbox-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.vayapin-checkbox {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 20px;
  height: 20px;
  border: 2px solid #3eb489;
  border-radius: 4px;
  background-color: white;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  margin-top: 2px;
}

.vayapin-checkbox:checked {
  background-color: #3eb489;
  border-color: #3eb489;
}

.vayapin-checkbox:checked::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 10px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.vayapin-checkbox-label {
  font-size: 14px;
  line-height: 1.4;
  color: #3eb489;
  cursor: pointer;
  margin: 0;
  flex: 1;
}

.vayapin-checkbox-label strong {
  color: #3eb489;
}

.vayapin-checkbox-info {
  font-size: 12px;
  color: #6c757d;
  margin-left: 32px;
}

.vayapin-checkbox-info a {
  color: #3eb489;
  text-decoration: none;
}

.vayapin-checkbox-info a:hover {
  color: #00898b;
  text-decoration: underline;
}

/* VayaPin Info Popup Styles */
.vayapin-info-popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vayapin-info-popup {
  background: linear-gradient(135deg, #3eb489 0%, #00898b 100%);
  border-radius: 12px;
  max-width: 600px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.vayapin-info-popup-header {
  padding: 20px 20px 0;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.vayapin-info-popup-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s;
}

.vayapin-info-popup-close:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.vayapin-info-popup-content {
  padding: 0 20px 20px;
  color: white;
}

.vayapin-info-popup-content h3 {
  margin: 0 0 15px;
  font-size: 20px;
  font-weight: 600;
  color: white;
}

.vayapin-info-popup-header h3 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  flex: 1;
  color: white;
}

.vayapin-info-popup-content p {
  margin: 0 0 15px;
  font-size: 14px;
  line-height: 1.5;
}

.vayapin-info-popup-footer {
  padding: 15px 0 0;
  text-align: center;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  margin-top: 20px;
}

.vayapin-info-popup-footer a {
  color: white;
  text-decoration: none;
  font-size: 12px;
  opacity: 0.8;
}

.vayapin-info-popup-footer a:hover {
  opacity: 1;
  text-decoration: underline;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .vayapin-info-popup {
    width: 95%;
    margin: 20px;
  }

  .vayapin-info-popup-content {
    padding: 0 15px 15px;
  }

  .vayapin-info-popup-header {
    padding: 15px 15px 0;
  }

  .vayapin-info-popup-footer {
    padding: 15px 15px 15px;
  }
}

/* VayaPin Order Confirmation Notice Styles - TEMPORARILY COMMENTED OUT - Issue 4: Remove confirmation banner */
/*
.vayapin-order-confirmation-notice {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 20px 0;
  padding: 15px 20px;
  background: linear-gradient(135deg, #3eb489 0%, #00898b 100%);
  border-radius: 8px;
  color: white;
  box-shadow: 0 2px 8px rgba(62, 180, 137, 0.2);
}

.vayapin-notice-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vayapin-notice-content {
  flex: 1;
  font-size: 14px;
  line-height: 1.4;
}

.vayapin-notice-content strong {
  color: white;
  font-weight: 600;
}

/* Responsive adjustments for order confirmation notice */
@media (max-width: 768px) {
  .vayapin-order-confirmation-notice {
    flex-direction: column;
    text-align: center;
    gap: 10px;
  }

  .vayapin-notice-icon {
    width: 30px;
    height: 30px;
  }

  .vayapin-notice-content {
    font-size: 13px;
  }
}
*/
