/**
 * OPUZ VPOS Frontend Styles
 * Made by Boka Development - https://bokadev.com
 */

/* Form container */
.opuz-vpos-payment-form,
.opuz-vpos-subscription-form {
  max-width: 480px;
  margin: 0 auto;
  padding: 30px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.opuz-vpos-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Fields */
.opuz-vpos-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.opuz-vpos-field label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.opuz-vpos-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #d0d0d0;
  border-radius: 6px;
  font-size: 16px;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  box-sizing: border-box;
}

.opuz-vpos-input:focus {
  outline: none;
  border-color: #2271b1;
  box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.15);
}

.opuz-vpos-field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Amount display */
.opuz-vpos-amount-display {
  text-align: center;
  padding: 16px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 8px;
}

.opuz-vpos-amount-label {
  display: block;
  font-size: 13px;
  color: #666;
  margin-bottom: 4px;
}

.opuz-vpos-amount-value {
  font-size: 32px;
  font-weight: 700;
  color: #1d2327;
}

/* Description */
.opuz-vpos-description {
  text-align: center;
  color: #555;
  margin-bottom: 8px;
}

/* Card logos */
.opuz-vpos-card-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  opacity: 0.85;
}

.opuz-vpos-card-logos img {
  height: 28px !important;
  width: auto !important;
  max-height: 28px !important;
  max-width: 80px !important;
  object-fit: contain;
}

/* Security logos (Visa Secure, MC ID Check, OTP Banka) */
.opuz-vpos-security-logos {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  padding: 16px 0 8px;
  margin-top: 12px;
  border-top: 1px solid #eee;
  flex-wrap: wrap;
}

.opuz-vpos-security-logos img {
  height: 28px !important;
  width: auto !important;
  max-height: 28px !important;
  max-width: 100px !important;
  object-fit: contain;
}

/* Secure badge */
.opuz-vpos-secure-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  color: #666;
  padding: 8px;
  background: #f8f9fa;
  border-radius: 4px;
}

.opuz-vpos-secure-badge .dashicons {
  font-size: 16px;
  color: #28a745;
}

/* Buttons */
.opuz-vpos-btn {
  display: inline-block;
  padding: 12px 24px;
  border: none;
  border-radius: 6px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  transition: all 0.2s;
  width: 100%;
}

.opuz-vpos-btn-primary {
  background: #2271b1;
  color: #fff;
}

.opuz-vpos-btn-primary:hover {
  background: #135e96;
}

.opuz-vpos-btn-primary:disabled {
  background: #a0c4e4;
  cursor: not-allowed;
}

.opuz-vpos-btn-outline {
  background: transparent;
  color: #dc3545;
  border: 1px solid #dc3545;
  padding: 8px 16px;
  font-size: 14px;
  width: auto;
}

.opuz-vpos-btn-outline:hover {
  background: #dc3545;
  color: #fff;
}

/* Loading */
.opuz-vpos-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px;
  color: #555;
}

.opuz-vpos-spinner {
  width: 20px;
  height: 20px;
  border: 3px solid #e0e0e0;
  border-top-color: #2271b1;
  border-radius: 50%;
  animation: opuz-spin 0.7s linear infinite;
}

@keyframes opuz-spin {
  to {
    transform: rotate(360deg);
  }
}

/* Error message */
.opuz-vpos-error-message {
  padding: 10px 14px;
  background: #f8d7da;
  color: #721c24;
  border-radius: 6px;
  font-size: 14px;
}

/* Plan card */
.opuz-vpos-plan-card {
  text-align: center;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 10px;
}

.opuz-vpos-plan-name {
  margin: 0 0 8px;
  font-size: 20px;
  color: #1d2327;
}

.opuz-vpos-plan-price .price {
  font-size: 36px;
  font-weight: 700;
  color: #1d2327;
}

.opuz-vpos-plan-price .currency {
  font-size: 16px;
  color: #666;
  margin-left: 2px;
}

.opuz-vpos-plan-price .interval {
  font-size: 14px;
  color: #888;
}

.opuz-vpos-trial {
  margin-top: 8px;
  padding: 4px 12px;
  background: #d4edda;
  color: #155724;
  border-radius: 4px;
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
}

.opuz-vpos-sub-terms {
  font-size: 12px;
  color: #888;
  text-align: center;
  line-height: 1.4;
}

/* Two column layout */
.opuz-vpos-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Plans selector */
.opuz-vpos-plans-wrap {
  max-width: 720px;
  margin: 0 auto;
}

.opuz-vpos-plan-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.opuz-vpos-plan-card-item {
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 24px 20px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.opuz-vpos-plan-card-item:hover {
  border-color: #2271b1;
  box-shadow: 0 4px 12px rgba(34, 113, 177, 0.12);
}

.opuz-vpos-plan-header h3 {
  margin: 0 0 8px;
  font-size: 18px;
  color: #1d2327;
}

.opuz-vpos-plan-note {
  font-size: 13px;
  color: #666;
  margin: 4px 0 16px;
}

.opuz-vpos-plan-login-note {
  font-size: 13px;
  color: #666;
  margin-top: 12px;
}

.opuz-vpos-btn-secondary {
  background: #f0f0f1;
  color: #1d2327;
  width: auto;
}

.opuz-vpos-btn-secondary:hover {
  background: #e0e0e0;
}

/* Error text */
.opuz-vpos-error {
  text-align: center;
  color: #721c24;
  background: #f8d7da;
  border: 1px solid #f5c6cb;
  border-radius: 6px;
  padding: 12px 16px;
}

/* Powered by */
.opuz-vpos-powered-by {
  text-align: center;
  margin-top: 16px;
  font-size: 11px;
}

.opuz-vpos-powered-by a {
  color: #999;
  text-decoration: none;
}

.opuz-vpos-powered-by a:hover {
  color: #2271b1;
}

/* Result page */
.opuz-vpos-result {
  max-width: 480px;
  margin: 30px auto;
  text-align: center;
}

.opuz-vpos-success,
.opuz-vpos-failed {
  padding: 40px 30px;
  border-radius: 10px;
}

.opuz-vpos-success {
  background: #d4edda;
  border: 1px solid #c3e6cb;
}

.opuz-vpos-failed {
  background: #f8d7da;
  border: 1px solid #f5c6cb;
}

.opuz-vpos-result-icon {
  font-size: 48px;
  margin-bottom: 12px;
}

.opuz-vpos-success .opuz-vpos-result-icon {
  color: #28a745;
}
.opuz-vpos-failed .opuz-vpos-result-icon {
  color: #dc3545;
}

.opuz-vpos-card-info {
  font-size: 13px;
  color: #666;
}

/* My subscriptions */
.opuz-vpos-my-subscriptions {
  max-width: 600px;
}

.opuz-vpos-sub-item {
  padding: 20px;
  margin-bottom: 12px;
  background: #fff;
  border: 1px solid #e0e0e0;
  border-radius: 8px;
}

.opuz-vpos-sub-item .sub-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.opuz-vpos-sub-item .sub-header h4 {
  margin: 0;
}

.opuz-vpos-sub-item .next-payment {
  font-size: 13px;
  color: #666;
}

/* Status badges (reused) */
.opuz-vpos-status-badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

/* My cards */
.opuz-vpos-cards-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.opuz-vpos-card-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: #f8f9fa;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
}

.opuz-vpos-card-item .card-brand {
  font-weight: 600;
  min-width: 80px;
}

.opuz-vpos-card-item .card-number {
  font-family: monospace;
  letter-spacing: 1px;
}

.opuz-vpos-card-item .card-exp {
  color: #888;
  font-size: 13px;
  margin-left: auto;
}

/* Login required */
.opuz-vpos-login-required {
  text-align: center;
  padding: 30px;
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: 8px;
}

/* Responsive */
@media (max-width: 520px) {
  .opuz-vpos-payment-form,
  .opuz-vpos-subscription-form {
    padding: 20px 16px;
    margin: 0 10px;
  }

  .opuz-vpos-field-row,
  .opuz-vpos-two-col {
    grid-template-columns: 1fr;
  }

  .opuz-vpos-plan-cards {
    grid-template-columns: 1fr;
  }

  .opuz-vpos-amount-value {
    font-size: 24px;
  }

  .opuz-vpos-plan-price .price {
    font-size: 28px;
  }
}
