/* Subscription Form Styles - Matching Cart Design */

/* Login Notice for Non-Authenticated Users */
.subscription-login-notice {
    max-width: 600px;
    margin: 40px auto;
    padding: 20px;
}

.notice-wrapper {
    background: #f8f9fa;
    border: 2px solid #e9ecef;
    border-radius: 12px;
    padding: 40px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.notice-icon {
    margin-bottom: 20px;
}

.notice-icon svg {
    color: #007cba;
}

.notice-content h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 15px;
    font-weight: 600;
}

.notice-content p {
    color: #666;
    font-size: 1.1em;
    line-height: 1.6;
    margin-bottom: 25px;
}

.notice-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.notice-actions .button {
    padding: 12px 24px;
    font-size: 1em;
    font-weight: 600;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.3s ease;
    min-width: 120px;
}

.btn-login {
    background: #007cba;
    color: white;
    border: 2px solid #007cba;
}

.btn-login:hover {
    background: #005a87;
    border-color: #005a87;
    color: white;
}

.btn-register {
    background: transparent;
    color: #007cba;
    border: 2px solid #007cba;
}

.btn-register:hover {
    background: #007cba;
    color: white;
}

.notice-footer {
    color: #888;
    font-size: 0.9em;
    font-style: italic;
    margin: 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .notice-wrapper {
        padding: 30px 20px;
    }
    
    .notice-actions {
        flex-direction: column;
        align-items: center;
    }
    
    .notice-actions .button {
        width: 100%;
        max-width: 200px;
    }
}

/* Authentication Status Notice for Logged-in Users */
.auth-status-notice {
    max-width: 1200px;
    margin: 0 auto 20px;
    padding: 0 20px;
}

.auth-notice-wrapper {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    border-radius: 8px;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.auth-notice-icon svg {
    color: #28a745;
    flex-shrink: 0;
}

.auth-notice-content p {
    margin: 0;
    color: #155724;
    font-size: 1em;
    font-weight: 500;
}

@media (max-width: 768px) {
    .auth-notice-wrapper {
        flex-direction: column;
        text-align: center;
        gap: 10px;
    }
}

.page-template-page-subscription-sheet {
    margin-top: 100px;
}

.subscription-form {
  display: flex;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
}

.subscription-form .wrapping {
  flex: 2;
}

.subscription-form .subscription-forms {
  flex: 1;
  min-width: 300px;
}

/* Title Styling */
.title-wrap {
  margin-bottom: 30px;
}

.page-title h1 {
  font-size: 2.5em;
  font-weight: 300;
  color: #333;
  margin: 0;
  text-align: center;
}

/* Frequency Selection */
.subscription-frequency-wrapper {
  margin-bottom: 30px;
  text-align: center;
}

.frequency-options {
  display: flex;
  justify-content: center;
  gap: 40px;
}

.frequency-options .jcf-radio {
    display: none;
}

.frequency-option {
  display: inline-block;
  cursor: pointer;
  padding: 10px 0;
  transition: all 0.3s ease;
  background: transparent;
  border: none;
  position: relative;
}

.frequency-option:hover {
  color: #333;
}

.frequency-option.active {
  color: #333;
}

.frequency-option.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #333;
  transition: all 0.3s ease;
}

.frequency-option input[type="radio"] {
  display: none;
}

.frequency-label {
  font-weight: 600;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  /* color: #666; */
  transition: color 0.3s ease;
}

.frequency-option.active .frequency-label {
  color: #333;
}

/* Table Styling */
.subscription-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 30px;
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
}

.subscription-table thead th {
  /* background: #f8f9fa; */
  font-family: "proxima_nova_rgbold", Arial, Verdana, sans-serif;
}

.subscription-table th {
  padding: 15px;
  text-align: left;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #e9ecef;
}

.subscription-table th.a-center {
  text-align: center;
}

.subscription-table td {
  padding: 20px 15px;
  border-bottom: 1px solid #e9ecef;
  vertical-align: middle;
}

.subscription-table tr:hover {
  background: #f8f9fa;
}

/* Product Info */
.product-subscription-info h2 {
  margin: 0;
  font-size: 1.1em;
  font-weight: 500;
  color: #333;
  font-family: "proxima_novasemibold", Arial, Verdana, sans-serif;
}

.product-subscription-info .subtitle {
  display: block;
  font-size: 0.9em;
  color: #666;
  margin-top: 5px;
  font-style: italic;
  font-family: "proxima_nova_rgegular", Arial, Verdana, sans-serif;
}

/* Price Styling */
.product-subscription-price .price {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}

/* Quantity Controls */
.quantity-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.qty-btn {
  width: 35px;
  height: 35px;
  border: 1px solid #ddd;
  background: #fff;
  color: #333;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  border-radius: 3px;
}

.qty-btn:hover {
  background: #f8f9fa;
  border-color: #333;
}

.qty-input {
  width: 60px;
  height: 35px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 3px;
  font-size: 14px;
}

/* Subtotal */
.product-subscription-subtotal .subtotal-price {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
}

/* Actions Section */
.subscription-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 8px;
}

.discount-section {
  flex: 1;
  max-width: 400px;
}

.discount-form .field-wrapper {
  display: flex;
  gap: 10px;
}

.discount-form input[type="text"] {
  flex: 1;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 14px;
}

.button-wrapper button {
  padding: 12px 20px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.button-wrapper button:hover {
  background: #555;
}

.update-section .btn-update {
  padding: 15px 30px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  transition: background 0.3s ease;
}

.update-section .btn-update:hover {
  background: #555;
}

/* Right Sidebar */
.subscription-totals-wrapper {
  background: #fff;
  border-radius: 8px;
  /* box-shadow: 0 2px 10px rgba(0,0,0,0.1); */
  overflow: hidden;
}

/* Delivery Section */
#delivery-section {
  padding: 25px;
  border-bottom: 1px solid #e9ecef;
}

#delivery-section h5 {
  margin: 0 0 15px 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

#delivery-section p {
  margin: 0 0 15px 0;
  line-height: 1.6;
  color: #666;
}

#delivery-section a {
  color: #333;
  text-decoration: underline;
}

#delivery-section input[type="text"] {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  margin-bottom: 15px;
}

#checkDelivery {
  width: 100%;
  padding: 12px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#checkDelivery:hover {
  background: #555;
}

/* Order Summary */
.order-summary {
  padding: 25px;
}

.order-summary h5 {
  margin: 0 0 20px 0;
  font-size: 1.2em;
  font-weight: 600;
  color: #333;
}

.summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #e9ecef;
}

.summary-row.total {
  border-bottom: 2px solid #333;
  font-weight: 600;
  font-size: 1.1em;
  margin-top: 15px;
  padding-top: 15px;
}

.summary-label {
  font-weight: 500;
  color: #333;
}

.summary-value {
  font-weight: 600;
  color: #333;
}

/* Shipping Info */
.shipping-info {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}

.shipping-info p {
  margin: 0 0 10px 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

.shipping-info p:last-child {
  margin-bottom: 0;
}

/* Recurring Info */
.recurring-info {
  margin: 20px 0;
  padding: 15px;
  background: #f8f9fa;
  border-radius: 4px;
}

.recurring-info p {
  margin: 0 0 8px 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

.recurring-info p:last-child {
  margin-bottom: 0;
}

/* Payment Info */
.payment-info {
  margin: 20px 0;
  padding: 20px;
  background: #f8f9fa;
  border-radius: 4px;
  text-align: center;
}

.paypal-logo {
  margin-bottom: 15px;
}

.paypal-logo img {
  max-width: 80px;
  height: auto;
}

.payment-info p {
  margin: 0;
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
}

.payment-info .learn-more {
  color: #333;
  text-decoration: underline;
}

/* Checkout Button */
.checkout-button-wrapper {
  margin-top: 25px;
}

.btn-proceed-checkout {
  width: 100%;
  padding: 18px;
  background: #333;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 600;
  font-size: 1.1em;
  text-transform: uppercase;
  letter-spacing: 1px;
  transition: background 0.3s ease;
}

.btn-proceed-checkout:hover {
  background: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
  .subscription-form {
    flex-direction: column;
    gap: 20px;
  }
  
  .subscription-form .subscription-forms {
    min-width: auto;
  }
  
  .subscription-actions {
    flex-direction: column;
    gap: 20px;
  }
  
  .discount-section {
    max-width: none;
  }
  
  .frequency-options {
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }
  
  .frequency-option {
    width: auto;
  }
}

@media (max-width: 480px) {
  .subscription-table {
    font-size: 14px;
  }
  
  .subscription-table th,
  .subscription-table td {
    padding: 10px 8px;
  }
  
  .quantity-wrapper {
    flex-direction: column;
    gap: 2px;
  }
  
  .qty-input {
    width: 50px;
  }
}
