/**
 * Smooy Astra Theme Consolidated Styles
 * This file contains all styles for the Smooy Astra theme
 */

/* 
 * Table of Contents:
 * 1. General Theme Styles
 * 2. Delivery Pickup Form Styles
 * 3. Checkout Styles 
 */

/* ----------------------------------------------------------------
 * 1. General Theme Styles
 * ---------------------------------------------------------------- */
/* These styles are from style.css */
.site-header {
    padding: 1em 0;
}

.site-logo img {
    max-width: 150px;
}

.site-navigation ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.site-navigation li {
    margin-right: 1.5em;
}

.site-navigation a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.site-navigation a:hover {
    color: #ff2d9f;
}

/* Footer styles */
.site-footer {
    background-color: #f5f5f5;
    padding: 2em 0;
    margin-top: 2em;
}

.footer-widgets {
    display: flex;
    flex-wrap: wrap;
    gap: 2em;
}

.footer-widget {
    flex: 1;
    min-width: 200px;
}

.footer-bottom {
    margin-top: 1.5em;
    padding-top: 1em;
    border-top: 1px solid #eee;
    text-align: center;
    font-size: 0.9em;
    color: #777;
}

/* Common elements */
.btn-primary {
    background-color: #ff2d9f;
    color: white;
    padding: 0.5em 1.5em;
    border-radius: 30px;
    display: inline-block;
    text-decoration: none;
    font-weight: 500;
    transition: background-color 0.3s;
}

.btn-primary:hover {
    background-color: #e6007e;
    color: white;
}

/* ----------------------------------------------------------------
 * 2. Delivery Pickup Form Styles
 * ---------------------------------------------------------------- */
/* These styles are from delivery-pickup.css */
.gosg-delivery-pickup-form {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #ffb6d8; /* Light pink background */
    border-radius: 30px;
    padding: 15px 25px;
    margin: 0 auto;
    max-width: 100%;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Common styles for selection buttons */
.gosg-delivery-pickup-wrapper{
    display: flex;
    align-items: center;
    background-color: white;
    border-radius: 50px;
    padding: 10px 20px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    flex-grow: 1;
    margin-right: 15px;
    transition: all 0.3s ease;
	max-width: max-content;
	gap: 20px;
}

.gosg-delivery-pickup-selection img,
.gosg-delivery-pickup-time-selection img {
    width: 20px;
    height: 20px;
    margin-right: 10px;
}

.gosg-delivery-pickup-selection span,
.gosg-delivery-pickup-time-selection span {
    flex-grow: 1;
    font-size: 14px;
    color: #555;
}

.gosg-arrow {
    width: 25px !important;
    height: 12px !important;
    margin-left: 10px !important;
    margin-right: 0 !important;
}

/* Checkout button styles */
.gosg-cart-checkout {
    min-width: 100px;
}

.gosg-cart-checkout a {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #e6007e; /* Magenta button color */
    color: white;
    border-radius: 50px;
    padding: 10px 20px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.gosg-cart-checkout a:hover {
    background-color: #d0006e;
}

.gosg-total-cost {
    font-weight: bold;
    margin-right: 10px;
    color: white;
}

.gosg-cart-checkout img {
    width: 20px;
    height: 20px;
}

/* Loading state for cart checkout button */
.gosg-cart-checkout.loading {
    pointer-events: none;
}

.gosg-cart-checkout.loading a {
    opacity: 0.7;
    position: relative;
}

.gosg-cart-checkout.loading a::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 16px;
    height: 16px;
    margin: -8px 0 0 -8px;
    border: 2px solid transparent;
    border-top: 2px solid white;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Disabled state */
.disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Responsive design for delivery pickup form */
@media (max-width: 768px) {
	.gosg-delivery-pickup-wrapper{
		flex-direction: column;
		border-radius: 10px;
	}
    .gosg-delivery-pickup-form {
        flex-direction: column;
        padding: 15px;
    }
    
    .gosg-delivery-pickup-selection,
    .gosg-delivery-pickup-time-selection {
        width: 100%;
        margin-right: 0;
        margin-bottom: 10px;
    }
    
    .gosg-cart-checkout {
        width: 100%;
    }
    
    .gosg-cart-checkout a {
        width: 100%;
        justify-content: center;
    }
}

/* Popup styles */
/* .gosg-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 998;
}

.gosg-popup-overlay.active {
    display: block;
}

.gosg-popup {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: white;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    z-index: 999;
    width: 90%;
    max-width: 500px;
    padding: 25px;
    max-height: 80vh;
    overflow-y: auto;
}

.gosg-popup.active {
    display: block;
}

.gosg-popup-close {
    position: absolute;
    top: 15px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
    color: #888;
}

.gosg-delivery-pickup-tab {
    display: flex;
    border-bottom: 1px solid #eee;
    margin-bottom: 20px;
}

.gosg-delivery-pickup-tab h4 {
    padding: 10px 20px;
    cursor: pointer;
    margin: 0;
    border-bottom: 3px solid transparent;
}

.gosg-delivery-pickup-tab h4.current {
    border-bottom: 3px solid #ff2d9f;
    color: #ff2d9f;
}

.gosg-delivery-tab-content,
.gosg-pickup-tab-content {
    display: none;
}

.gosg-delivery-tab-content.current,
.gosg-pickup-tab-content.current {
    display: block;
}

.gosg-popup h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: #333;
}

.gosg-delivery-form label,
.gosg-pickup-form label {
    display: block;
    margin-bottom: 5px;
    font-size: 14px;
}

.gosg-delivery-form input,
.gosg-pickup-form input {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.gosg-error {
    display: none;
    color: #e60000;
    font-size: 14px;
    margin: 10px 0;
}

.gosg-error.enabled {
    display: block;
}

.gosg-popup-footer {
    margin-top: 20px;
    text-align: right;
}

.gosg-popup-footer button {
    background-color: #ff2d9f;
    color: white;
    border: none;
    border-radius: 30px;
    padding: 10px 20px;
    cursor: pointer;
    font-size: 14px;
}

.gosg-popup-footer button:hover {
    background-color: #e6007e;
}

.gosg-pickup-location {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid #eee;
    border-radius: 5px;
}

.gosg-pickup-location:hover {
    background-color: #f9f9f9;
}

.gosg-pickup-location input {
    margin-right: 10px;
} */

/* ----------------------------------------------------------------
 * 3. Checkout Styles
 * ---------------------------------------------------------------- */
/* These styles are from checkout.css */
/* Main checkout wrapper */
.smooy-checkout-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    color: #333;
}

/* Checkout navigation */
.smooy-checkout-nav {
    margin-bottom: 30px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.smooy-checkout-steps {
    display: flex;
    gap: 10px;
    align-items: center;
}

.smooy-step {
    color: #aaa;
    font-size: 14px;
    position: relative;
}

.smooy-step:after {
    content: ">";
    margin-left: 10px;
    color: #ddd;
}

.smooy-step:last-child:after {
    display: none;
}

.smooy-step.current {
    color: #ff2d9f;
    font-weight: bold;
}

.smooy-step a {
    text-decoration: none;
    color: #aaa;
}

.smooy-step a:hover {
    color: #ff2d9f;
}

/* Checkout content layout */
.smooy-checkout-content {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
}

/* Modify Astra's two-column layout */
#customer_details.col2-set {
    margin-bottom: 30px;
    flex: 1;
    min-width: 300px;
}

#customer_details .col-1,
#customer_details .col-2 {
    margin-bottom: 20px;
    width: 100%;
    float: none;
}

/* Order review section */
.smooy-checkout-order {
    width: 350px;
}

/* Form styling */
.woocommerce-checkout input[type="text"],
.woocommerce-checkout input[type="email"],
.woocommerce-checkout input[type="tel"],
.woocommerce-checkout input[type="password"],
.woocommerce-checkout select,
.woocommerce-checkout textarea {
    background-color: #ffffff !important;
    border: 1px solid #ddd !important;
    border-radius: 13px !important;
    padding: 12px;
    width: 100%;
    margin-bottom: 0px;
    font-size: 14px;
}

.woocommerce-checkout label {
    display: block;
    font-size: 14px;
    margin-bottom: 5px;
}

.woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

/* Billing form styling */
.billing-form-fields {
    margin-bottom: 30px;
}

.name-fields-row {
    display: flex;
    gap: 20px;
    margin-bottom: 15px;
}

.name-fields-row .form-field {
    flex: 1;
    margin-bottom: 0;
}

.form-field {
    margin-bottom: 20px;
}

.form-field input,
.form-field textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    box-shadow: none;
    transition: border-color 0.2s;
}

.form-field input:focus,
.form-field textarea:focus {
    border-color: #ff2d9f;
    outline: none;
}

.form-field textarea {
    min-height: 100px;
    resize: vertical;
}

/* Heading styles */
.smooy-checkout-billing h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #ff2d9f;
    font-weight: 600;
}

/* Delivery section styling */
.delivery-section {
    background-color: rgba(255, 235, 245, 0.5);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
}

.delivery-option-selector,
.delivery-time-selector,
.location-selector,
.pickup-location-selector {
    margin-bottom: 20px;
    position: relative;
}

/* Styled selector buttons */
.selector-btn {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 15px 20px;
    border-radius: 30px;
    border: none;
    text-align: left;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
}

button.selector-btn, 
button.selector-btn:hover, 
button.selector-btn:focus {
    background-color: #ffffff;
    border-color: #e0e0e0;
    border-radius: 13px !important;
}

.location-btn {
    background-color: #e0e0e0;
}

.selector-btn .icon {
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.selector-btn .dropdown-arrow {
    margin-left: auto;
    font-size: 10px;
    color: #888;
}

/* Dropdown styling */
.dropdown-content {
    position: absolute;
    z-index: 100;
    width: 100%;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    padding: 15px;
    margin-top: 5px;
}

.dropdown-item {
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    transition: background-color 0.2s;
}

.dropdown-item:hover {
    background-color: #f8f8f8;
}

#delivery-time-dropdown {
    padding: 15px;
}

#delivery-time-dropdown input[type="date"],
#delivery-time-dropdown select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    margin-bottom: 15px;
}

#delivery-time-dropdown button {
    width: 100%;
    background-color: #ff2d9f;
    color: white;
    border: none;
    border-radius: 25px;
    padding: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

#delivery-time-dropdown button:hover {
    background-color: #e6007e;
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: grayscale(100%);
    opacity: 0.6;
}

.delivery-section .form-field input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

.delivery-section .form-field input:focus {
    border-color: #ff2d9f;
    outline: none;
}

.pickup-location-selector .dropdown-content {
    max-height: 300px;
    overflow-y: auto;
}

.pickup-location-selector .dropdown-item {
    border-bottom: 1px solid #f0f0f0;
    padding: 15px;
}

.pickup-location-selector .dropdown-item:last-child {
    border-bottom: none;
}

.pickup-location-selector .dropdown-item:hover {
    background-color: #ffe8f3;
}

#pickup-location-fields select {
    width: 100%;
}

.woocommerce form .form-row {
    padding: 0;
    margin: 0 0 20px;
}

.woocommerce form .form-row label {
    font-size: 14px;
    margin-bottom: 5px;
}

#order_review {
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 15px;
}

#order_review_heading {
    font-size: 20px;
    color: #ff2d9f;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
    font-weight: 600;
}

.woocommerce-checkout-review-order-table {
    width: 100%;
    border-collapse: collapse;
}

.woocommerce-checkout-review-order-table th,
.woocommerce-checkout-review-order-table td {
    padding: 12px 0;
}

.woocommerce-checkout-review-order-table .product-name {
    color: #333;
}

.woocommerce-checkout-review-order-table .product-total {
    text-align: right;
    color: #333;
}

.cart-subtotal,
.order-total {
    border-top: 1px solid #eee;
}

.cart-subtotal th,
.cart-subtotal td {
    padding-top: 15px;
    color: #888;
    font-weight: normal;
}

.order-total th,
.order-total td {
    padding-top: 15px;
    padding-bottom: 15px;
    font-weight: bold;
    color: #333;
}

#order_review_heading {
    font-size: 18px;
    margin-bottom: 15px;
    color: #ff2d9f;
    font-weight: 600;
}

.offers-section {
    margin-top: 20px;
    margin-bottom: 20px;
}

.offers-title {
    color: #333;
    font-size: 16px;
}

.add-code-button {
    color: #ff2d9f;
    text-decoration: underline;
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
    font-size: 14px;
}

.coupon-form-checkout {
    margin-top: 15px;
    display: flex;
    width: 100%;
}

.coupon-form-checkout input[type="text"] {
    flex: 1;
    margin-right: 10px;
}

.coupon-form-checkout button {
    background-color: #ff2d9f;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.2s;
}

.coupon-form-checkout button:hover {
    background-color: #e6007e;
}

#payment_section {
    margin-top: 30px;
}

#payment_section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #ff2d9f;
    font-weight: 600;
}

.woocommerce-checkout #payment {
    background-color: transparent;
    border-radius: 0;
}

.woocommerce-checkout #payment ul.payment_methods {
    padding: 0;
    border: none;
}

.woocommerce-checkout #payment ul.payment_methods li {
    margin-bottom: 10px;
}

.woocommerce-checkout #payment div.payment_box {
    background-color: #f5f5f5;
    color: #666;
}

.woocommerce-checkout #payment div.payment_box::before {
    border-color: #f5f5f5;
}

.woocommerce-checkout #payment ul.payment_methods li input {
    margin-right: 10px;
}

.woocommerce-checkout #payment ul.payment_methods li label {
    font-weight: normal;
}

.woocommerce-checkout #payment .payment_method_paypal .about_paypal {
    margin-left: 10px;
    color: #ff2d9f;
}

.woocommerce-checkout #payment div.form-row {
    padding: 0;
    margin-top: 20px;
}

.woocommerce-checkout #payment #place_order {
    width: 100%;
    background-color: #ff2d9f;
    color: white;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 30px;
    transition: background-color 0.2s;
}

.woocommerce-checkout #payment #place_order:hover {
    background-color: #e6007e;
}

.product-name {
    font-weight: bold;
    color: #333;
}

.product-thumbnail {
    width: 80px;
    padding-right: 15px;
}

.product-thumbnail img {
    width: 100%;
    border-radius: 5px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.product-name-details {
    font-size: 14px;
}

.product-quantity {
    font-weight: normal;
    color: #666;
    font-size: 14px;
}

.remove-item {
    color: #888;
    font-size: 12px;
    text-decoration: none;
    display: inline-block;
    margin-top: 5px;
}

.remove-item:hover {
    color: #ff2d9f;
    text-decoration: underline;
}

.woocommerce-error {
    background-color: #fff1f1;
    color: #e60000;
    padding: 15px;
    border-left: 3px solid #e60000;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 5px;
}

.woocommerce-message {
    background-color: #f1fff1;
    color: #00b300;
    padding: 15px;
    border-left: 3px solid #00b300;
    margin-bottom: 20px;
    font-size: 14px;
    border-radius: 5px;
}

/* Responsive checkout */
@media (max-width: 768px) {
    .smooy-checkout-content {
        flex-direction: column;
    }
    
    .smooy-checkout-order {
        width: 100%;
    }
    
    #customer_details .col-1,
    #customer_details .col-2 {
        width: 100%;
    }
    
    .name-fields-row {
        flex-direction: column;
        gap: 10px;
    }
    
    .coupon-form-checkout {
        flex-direction: column;
    }
    
    .coupon-form-checkout button {
        margin-top: 10px;
    }
} 