/* Sidepanel Style */
#custom-sidepanel {
    position: fixed;
    right: -100%;
    top: 0;
    width: 400px;
    height: 100%;
    background: white;
    box-shadow: -4px 0 12px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease;
    z-index: 1001;
    overflow-y: auto;
}

#custom-sidepanel.open {
    right: 0;
}

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
}

.popup {
    position: fixed;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 20px;
    z-index: 1001;
    width: 90%;
    max-width: 400px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hidden {
    display: none;
}

.btn {
    background: #0071a1;
    color: white;
    border: none;
    padding: 10px;
}

.btn-outline {
    background: transparent;
    border: 1px solid #0071a1;
    color: #0071a1;
}

/* General Reset & Base Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}

h2,
h3 {
    margin: 0 0 10px;
}

/* Side Panel Container */
.sidepanel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 15px 20px;
    border-bottom: 1px solid #ddd;
}

.sidepanel-header h2 {
    font-size: 20px;
}

#close-panel {
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.sidepanel-body {
    padding: 20px;
    background-color: #fff;
}

.panel-section {
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.panel-section h3 {
    font-size: 16px;
    margin-bottom: 10px;
}

/* Buttons */
.btn {
    background-color: #0071a1;
    color: #fff;
    padding: 8px 0px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-top: 10px;
}

.btn-outline {
    background-color: transparent;
    color: #0071a1;
}

.btn-primary {
    width: 100%;
    background-color: #28a745;
    border-color: #28a745;
}

/* Popups / Modals */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 999;
}

.popup {
    position: fixed;
    top: 40%;
    left: 50%;
    width: 90%;
    max-width: 600px;
    background: #fff;
    padding: 20px;
    transform: translate(-50%, -50%);
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
}

#payment-popup {
   
    top: 50%;
}

.popup h3 {
    margin-bottom: 15px;
}

.popup input[type="text"],
.popup input[type="tel"],
.popup input[type="email"],
.popup input[type="number"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
}

.popup form label {
    margin-bottom: 10px;
}

.hidden {
    display: none;
}

/* Responsive */
@media (max-width: 600px) {
    .sidepanel-body {
        padding: 15px;
    }

    .panel-section h3 {
        font-size: 15px;
    }

    .btn,
    .btn-outline,
    .btn-primary {
        font-size: 14px;
        padding: 8px 12px;
    }
}


#address-form {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

#address-form input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
    width: 100%;
}

#address-form input:focus {
    border-color: #0071a1;
    outline: none;
    box-shadow: 0 0 3px rgba(0, 113, 161, 0.3);
}

#address-form button, #coupon-form .btn, #payment-form .btn {
    background-color: #0071a1;
    color: white;
    border: none;
    padding: 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 15px;
}

#address-form button:hover,
#coupon-form .btn:hover, #payment-form .btn:hover {
    background-color: #005f8d;
}

.popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.close-popup {
    background: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer; 
}

#ajax-loader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(255,255,255,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.spinner {
  width: 50px;
  height: 50px;
  border: 6px solid #ccc;
  border-top-color: #007bff;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Popup Container */
#address-popup.popup {
    background: #fff;
    width: 600px;
    max-width: 90%;
    margin: 5% auto;
    padding: 20px 30px;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15);
    font-family: 'Segoe UI', sans-serif;
}

/* Popup Header */
#address-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

#address-popup .popup-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    color: #13103c;
}

#address-popup .popup-header .close-popup {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

/* Form Label Styling */
#address-form label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
    color: #101356;
    float: left;
}

/* Form Input Fields */
#address-form input,
#address-form select {
    width: 100%;
    padding: 8px 12px;
    font-size: 12px;
    border: 1px solid #d0d0d0;
    border-radius: 6px;
    background: #fffbea;
    transition: all 0.3s ease;
}

#address-form input:focus,
#address-form select:focus {
    border-color: #ff3366;
    outline: none;
    background-color: #fff;
}

/* Save Button */
#address-form button.button, #place_order {
    width: 100%;
    padding: 12px;
    background: #ff3366;
    color: #fff;
    font-weight: bold;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
    font-size: 16px;
}

#address-form button.button:hover {
    background: #e52e5c;
}

/* Optional Text for Address 2, Phone, etc. */
#address-form .screen-reader-text,
#address-form .optional {
    font-size: 12px;
    color: #999;
}
#address-form .woocommerce-input-wrapper{
    float: right;
    width: 70%;
}

#hidden-checkout-wrapper #customer_details, #hidden-checkout-wrapper .woocommerce-form-coupon-toggle, #hidden-checkout-wrapper .shop_table,#hidden-checkout-wrapper #order_review_heading, #hidden-checkout-wrapper .woocommerce-NoticeGroup{
    display:none;
}