/* My Store Frontend Styles */

@font-face {
    font-family: 'UTM HelvetIns';
    src: url('../fonts/UTM HelvetIns.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Manrope';
    src: url('../fonts/Manrope-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

.my-store-locator-widget {
    max-width: 480px;
    margin: 20px 0;
    border: 1px solid #0018441A;
    border-radius: 10px;
    background: white;
    overflow: hidden;
    font-family: Manrope;
}

.my-store-locator-widget .store-locator-header {
    background: #0018441A;
    padding: 10px;
}

.my-store-locator-widget .store-locator-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: 'UTM HelvetIns', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.my-store-locator-widget .store-search-container {
    background: white;
    padding: 20px;
}

.my-store-locator-widget .search-input-wrapper {
    position: relative;
}

.my-store-locator-widget .store-search-input {
    width: 100%;
    padding: 10px;
    border: 1px solid #0018441A;
    border-radius: 6px;
    font-size: 16px;
    box-shadow: none;
    color: #1B1B1B;
    height: 48px;
}

.my-store-locator-widget .store-search-input:focus {
    border-color: #4A90E2;
    background: white;
}

.my-store-locator-widget .search-btn {
    position: absolute;
    right: 14px;
    top: 45%;
    transform: translateY(-50%);
    background: none;
    width: 20px;
    height: 20px;
    margin: 0;
}

.my-store-locator-widget .search-btn:hover {
    color: #4A90E2;
}

.my-store-locator-widget .filter-label {
    margin: 0 0 20px 0;
    font-size: 16px;
    color: #000000;
    font-weight: normal;
    font-family: Manrope;
}

.my-store-locator-widget .region-buttons {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.my-store-locator-widget .region-btn {
    padding: 2px 16px;
    border-radius: 99px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: #0018441A;
    color: #000000;
    font-weight: 500;
    margin: 0;
    text-transform: none;
    font-family: Manrope;
}

.my-store-locator-widget .region-btn:hover {
    color: #ffffff;
    background: #E73920;
}

.my-store-locator-widget .region-btn.active {
    background: #E73920;
    border-color: #E73920;
    color: white;
}

.my-store-locator-widget .stores-list {
    background: white;
    max-height: 400px;
    overflow-y: auto;
}

.my-store-locator-widget .store-item {
    display: flex;
    padding: 15px 20px;
    align-items: flex-start;
    gap: 12px;
    transition: background-color 0.2s ease;
    border: 1px solid #0018441A;
    margin: 20px;
    border-radius: 10px;
}

.my-store-locator-widget .store-item:hover {
    background: #f9f9f9;
}

.my-store-locator-widget .store-item:last-child {
    border-bottom: none;
}

.my-store-locator-widget .store-image {
    flex-shrink: 0;
    width: 90px;
    height: 90px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.my-store-locator-widget .store-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.my-store-locator-widget .store-info {
    flex: 1;
    min-width: 0;
}

.my-store-locator-widget .store-name {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    color: #000000;
    line-height: 1.3;
    font-family: Manrope;
}

.my-store-locator-widget .store-details {
    margin-bottom: 8px;
}

.my-store-locator-widget .store-address,
.my-store-locator-widget .store-phone {
    display: flex;
    align-items: flex-start;
    gap: 5px;
    margin-bottom: 3px;
    font-size: 12px;
    color: #666;
    line-height: 1.4;
}

.my-store-locator-widget .store-address span:nth-of-type(2),
.my-store-locator-widget .store-phone span:nth-of-type(2) {
    color: #000000;
    font-weight: 500;
}

.my-store-locator-widget .store-address svg,
.my-store-locator-widget .store-phone svg {
    flex-shrink: 0;
    margin-top: 1px;
    opacity: 0.7;
    width: 24px;
    height: 24px;
    color: #E73920;
    background-color: #E839261A;
    border-radius: 99%;
    padding: 3px;
}


.my-store-locator-widget .store-header .view-store-btn {
    color: #0F3E93;
    font-size: 14px;
    width: 100%;
    font-family: Manrope;
    font-weight: 400;
    display: block;
    text-align: right;
    text-decoration: none;
    border-bottom: none !important;
}

.my-store-locator-widget .store-header .view-store-btn:hover {
    text-decoration: none;
    border-bottom: none;
}

.my-store-locator-widget .store-actions {
    text-align: right;
}

.my-store-locator-widget .view-store-btn {
    color: #4A90E2;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
    padding: 2px 0;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

.my-store-locator-widget .view-store-btn:hover {
    border-bottom-color: #4A90E2;
    text-decoration: none;
}

.my-store-locator-widget .load-more-container {
    background: white;
    padding: 15px 20px;
    text-align: center;
    border-radius: 0 0 6px 6px;
}

.my-store-locator-widget .load-more-btn {
    background: white;
    border: none;
    padding: 0;
    border-radius: 4px;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #000000;
    font-weight: 500;
    text-transform: none;
    margin: 0;
}

.my-store-locator-widget #remaining-count {
    color: #E73920;
    font-weight: bold;
}

.my-store-locator-widget .load-more-btn:hover {
    background: #E73920;
    color: white;
}

.my-store-locator-widget .no-stores-message {
    text-align: center;
    padding: 30px 20px;
    color: #666;
    font-style: italic;
    font-size: 14px;
}

.my-store-locator-widget .loading-spinner {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 768px) {
    .my-store-locator-widget {
        margin: 15px 0;
        max-width: 100%;
    }

    .my-store-locator-widget .store-locator-header,
    .my-store-locator-widget .store-search-container,
    .my-store-locator-widget .load-more-container {
        padding: 12px 15px;
    }

    .my-store-locator-widget .region-buttons {
        gap: 6px;
    }

    .my-store-locator-widget .region-btn {
        padding: 5px 12px;
        font-size: 12px;
    }

    .my-store-locator-widget .store-item {
        padding: 12px 15px;
        gap: 10px;
    }

    .my-store-locator-widget .store-image {
        width: 45px;
        height: 45px;
    }

    .my-store-locator-widget .store-name {
        font-size: 14px;
    }

    .my-store-locator-widget .store-address,
    .my-store-locator-widget .store-phone {
        font-size: 11px;
    }
}

/* Buy Now Section */
.my-store-locator-widget .buy-now-section {
    margin-top: 20px;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #e0e0e0;
}

.my-store-locator-widget .buy-now-button {
    background: #ff6b35;
    color: white;
    border: none;
    padding: 15px 40px;
    font-size: 16px;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.my-store-locator-widget .buy-now-button:hover {
    background: #E73920;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 53, 0.3);
}

.my-store-locator-widget .store-item.selected {
    border: 1px solid #E73920;
    background: #e73b2008;
    transform: scale(1.02);
}

.my-store-locator-widget .store-item {
    cursor: pointer;
    transition: all 0.3s ease;
}

.my-store-locator-widget .store-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Buy Now Popup */
.buy-now-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.buy-now-popup .popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.buy-now-popup .popup-content {
    position: relative;
    background: white;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    margin: 5vh auto;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.buy-now-popup .popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #eee;
    background: #f8f9fa;
    border-radius: 12px 12px 0 0;
}

.buy-now-popup .popup-header h3 {
    margin: 0;
    color: #333;
    font-size: 20px;
}

.buy-now-popup .popup-close {
    margin: 0;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    right: 10px;
    top: -10px;
    font-size: 26px;
    padding: 0;
}

.buy-now-popup .popup-close:hover {
    color: #333;
}

.buy-now-popup .quick-order-form {
    padding: 25px;
}

/* Product Summary */
.buy-now-popup .product-summary {
    display: flex;
    gap: 15px;
    padding: 0;
    border-radius: 8px;
    margin-bottom: 25px;
}

.buy-now-popup .product-image img {
    width: 120px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
}

.buy-now-popup .product-info h4 {
    margin: 0;
    color: #000000;
    font-size: 16px;
    margin-bottom: 10px;
}

.buy-now-popup .product-price * {
    color: #E73920;
    font-weight: bold;
    font-size: 18px;
}

.buy-now-popup .product-price {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    justify-content: space-between;
}

.buy-now-popup .discount-badge {
    background: #E73920;
    color: white;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    display: inline-block;
    margin: 0;
}

.buy-now-popup .quantity-selector {
    display: flex;
    align-items: center;
    gap: 10px;
}

.buy-now-popup .qty-btn {
    background: #F5F5F5;
    color: #000000;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin: 0;
}

.buy-now-popup .qty-btn:hover {
    background: #E73920;
}

.buy-now-popup #product-quantity {
    width: 60px;
    text-align: center;
    border-radius: 4px;
    padding: 5px;
    box-shadow: none;
    margin: 0;
    border: none;
}

/* Customer Info */
.buy-now-popup .customer-info h4 {
    color: #333;
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    font-family: 'UTM HelvetIns';
}

.buy-now-popup .gender-selection {
    display: flex;
    gap: 20px;
    margin: 0;
}

.gender-selection input {
    margin: 0;
}

.buy-now-popup .gender-selection label {
    display: flex;
    align-items: center;
    cursor: pointer;
}

.buy-now-popup .form-row {
    display: flex;
    gap: 15px;
    margin-bottom: 0;
}

.buy-now-popup .form-group {
    flex: 1;
}

.buy-now-popup .form-group label {
    display: block;
    margin-bottom: 5px;
    color: #333;
    font-weight: 500;
}

.buy-now-popup .form-group input,
.buy-now-popup .form-group select,
.buy-now-popup .payment-method select {
    height: 48px;
}

.buy-now-popup .form-group input,
.buy-now-popup .form-group select,
.buy-now-popup .form-group textarea,
.buy-now-popup .payment-method select {
    width: 100%;
    padding: 2px 10px;
    border: 1px solid #0018441A;
    border-radius: 6px;
    font-size: 14px;
    box-sizing: border-box;
    box-shadow: none;
}

.buy-now-popup .form-group input:focus,
.buy-now-popup .form-group select:focus,
.buy-now-popup .form-group textarea:focus,
.buy-now-popup .payment-method select:focus {
    border-color: #E73920;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0, 124, 186, 0.1);
}

.buy-now-popup .delivery-options {
    margin: 10px 0;
}

.buy-now-popup .delivery-options .flex {
    display: flex;
    gap: 30px;
}

.buy-now-popup .delivery-options .flex input {
    margin: 3px 7px 0 0;
    font-family: 'Manrope';
}

.buy-now-popup .delivery-options label {
    display: block;
    margin-bottom: 10px;
    cursor: pointer;
    font-family: 'Manrope';
}

.buy-now-popup .additional-options label {
    display: block;
    margin-bottom: 0;
    cursor: pointer;
    font-weight: 400;
    font-family: 'Manrope';
}

/* Order Summary */
.buy-now-popup .order-summary {
    padding: 0;
    margin-top: 15px;
}

.buy-now-popup .order-summary h4 {
    margin: 0 0 15px 0;
    font-size: 16px;
    font-weight: bold;
    color: #333;
    font-family: 'UTM HelvetIns';
}

.buy-now-popup .summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0;
    padding: 5px 0;
    font-family: 'Manrope';
}

.buy-now-popup .summary-row span:nth-of-type(1) {
    font-size: 16px;
    font-family: 'Manrope';
    color: #1B1B1B99;
}

.buy-now-popup .summary-row span:nth-of-type(2) {
    font-size: 16px;
    font-family: 'Manrope';
    color: #000000;
}

.buy-now-popup #product-total * {
    color: #000000;
}

.buy-now-popup .summary-row.total {
    border-top: 1px solid #ddd;
    padding-top: 15px;
    margin-top: 15px;
    font-weight: bold;
    font-size: 18px;
    color: #ff6b35;
    font-family: 'Manrope';
}

.buy-now-popup .terms-agreement {
    margin: 20px 0;
}

.buy-now-popup #order-total * {
    color: #E73920;
}

.buy-now-popup .terms-agreement label {
    display: flex;
    align-items: flex-start;
    gap: 0;
    font-size: 13px;
    line-height: 1.4;
    cursor: pointer;
    font-family: 'Manrope';
}

.buy-now-popup .submit-order-btn {
    width: 100%;
    background: #E73920;
    color: white;
    border: none;
    padding: 0;
    font-size: 16px;
    font-weight: bold;
    height: 46px;
    border-radius: 10px;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    text-transform: none;
    font-family: 'Manrope';
}

.buy-now-popup .submit-order-btn:hover {
    background: #e55a2b;
}

.buy-now-popup .submit-order-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

body.popup-open {
    overflow: hidden;
}

/* Mobile popup styles */
@media (max-width: 767px) {
    .buy-now-popup .popup-content {
        width: 95%;
        margin: 2vh auto;
        max-height: 96vh;
    }

    .buy-now-popup .product-summary {
        flex-direction: column;
        text-align: center;
    }

    .buy-now-popup .form-row {
        flex-direction: column;
    }

    .buy-now-popup .quick-order-form {
        padding: 20px;
    }

    .buy-now-popup .popup-header {
        padding: 15px 20px;
    }
}

/* Bank Transfer Info Styles */
.bank-transfer-info {
    margin-top: 15px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    animation: slideDown 0.3s ease-in-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }

    to {
        opacity: 1;
        max-height: 500px;
    }
}

.bank-transfer-info h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 16px;
    font-weight: 600;
    border-bottom: 2px solid #dee2e6;
    padding-bottom: 8px;
}

.bank-transfer-info h5 {
    margin: 15px 0 10px 0;
    color: #6c757d;
    font-size: 14px;
    font-weight: 600;
}

.bank-details .bank-account {
    margin-bottom: 20px;
    padding: 12px;
    background: white;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.bank-details .bank-account.multiple-accounts {
    border-left: 4px solid #007bff;
}

.bank-item {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    gap: 10px;
}

.bank-item strong {
    color: #495057;
    min-width: 140px;
    font-size: 13px;
    font-weight: 600;
}

.bank-item span {
    color: #212529;
    font-size: 13px;
    flex: 1;
}

.account-number {
    font-family: monospace;
    font-weight: 600;
    color: #007bff !important;
}

.copy-btn {
    background: #007bff;
    color: white;
    border: none;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    transition: all 0.2s ease;
}

.copy-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}

.copy-btn.copied {
    background: #28a745;
}

.transfer-content {
    font-family: monospace;
    background: #fff3cd;
    padding: 4px 8px;
    border-radius: 4px;
    border: 1px solid #ffeaa7;
    color: #856404 !important;
    font-weight: 600;
}

.bank-note,
.bank-instructions {
    margin-top: 12px;
    padding: 10px;
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    border-radius: 4px;
}

.bank-note small,
.bank-instructions small {
    color: #0c5460;
    font-size: 12px;
    line-height: 1.4;
}

.payment-description {
    margin-bottom: 15px;
    color: #6c757d;
    font-size: 13px;
    line-height: 1.4;
}

.loading-payment-info {
    text-align: center;
    padding: 20px;
    color: #6c757d;
    font-style: italic;
}

.bank-error {
    text-align: center;
    padding: 15px;
    color: #dc3545;
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
}

/* QR Code Styles */

.qr-code-container {
    width: 100%;
    text-align: center;
    margin-bottom: 30px;
}

.qr-code-image {
    max-width: 200px;
    max-height: 200px;
    width: 100%;
    height: auto;
    border: 2px solid #f8f9fa;
    border-radius: 8px;
    display: block;
    margin: 0 auto;
}

.qr-code-note {
    margin: 10px 0 0 0;
    color: #6c757d;
    font-size: 12px;
    font-style: italic;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .qr-code-image {
        max-width: 160px;
        max-height: 160px;
    }

    .qr-code-container {
        padding: 15px;
    }

    .qr-code-section h5 {
        font-size: 14px;
    }
}

.buy-now-section #buy-now-btn {
    margin: 0;
    width: 100%;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    display: flex;
    flex-direction: column;
    background-color: #E73920;
    font-family: 'Manrope';
    text-transform: none;
    padding: 10px 0;
    margin-bottom: 20px;
}

.buy-now-section #buy-now-btn {
    font-size: 16px;
    line-height: 1.3em;
}

.buy-now-section #buy-now-btn span:nth-of-type(1) {
    font-weight: bold;
}

.buy-now-section #buy-now-btn span:nth-of-type(2) {
    font-weight: 400;
}