/* Cart System CSS */
:root {
    --primary-orange: #ff9621;
    --primary-red: #ff5951;
    --primary-black: #111111;
    --background-light: #fff7f0;
    --primary-orange-rgb: 255, 150, 33;
    --primary-red-rgb: 255, 89, 81;
}

/* Cart Icon in Header */
.cart-icon-container {
    position: relative;
    margin-left: 15px;
    cursor: pointer;
}

.cart-icon {
    font-size: 20px;
    color: var(--primary-black);
    transition: color 0.3s ease;
}

.cart-icon:hover {
    color: var(--primary-orange);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    color: white;
    font-size: 12px;
    font-weight: 700;
    height: 18px;
    width: 18px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: transform 0.3s ease;
}

.cart-icon-container:hover .cart-count {
    transform: scale(1.1);
}

/* Cart Modal */
.cart-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    display: none;
    justify-content: center;
    align-items: center;
}

.cart-modal {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.cart-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    border-radius: 10px 10px 0 0;
}

.cart-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--primary-black);
}

.close-cart {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-cart:hover {
    color: var(--primary-red);
}

.cart-content {
    padding: 20px;
    max-height: 400px;
    overflow-y: auto;
}

.empty-cart {
    padding: 30px;
    text-align: center;
    color: #666;
    font-style: italic;
}

.cart-item {
    display: flex;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
    position: relative;
}

.cart-item:last-child {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
}

.cart-item-image {
    width: 70px;
    height: 70px;
    overflow: hidden;
    border-radius: 8px;
    margin-right: 15px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
}

.cart-item-image img {
    width: 80%;
    height: auto;
    object-fit: contain;
    max-height: 80%;
}

.cart-item-details {
    flex: 1;
}

.cart-item-details h3 {
    margin: 0 0 5px;
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-black);
}

.cart-item-details p {
    margin: 0 0 5px;
    font-size: 14px;
    color: #666;
}

.item-price {
    font-weight: 700;
    color: var(--primary-black) !important;
}

.remove-item {
    background: none;
    border: none;
    color: #ccc;
    cursor: pointer;
    font-size: 16px;
    position: absolute;
    top: 0;
    right: 0;
    transition: color 0.3s ease;
}

.remove-item:hover {
    color: var(--primary-red);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    bottom: 0;
    background-color: white;
    border-radius: 0 0 10px 10px;
}

.cart-total {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-black);
}

.checkout-btn {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.checkout-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 150, 33, 0.3);
}

.checkout-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Payment Modal */
.payment-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 1100;
    display: none;
    justify-content: center;
    align-items: center;
}

.payment-modal {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.payment-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 10;
    border-radius: 10px 10px 0 0;
}

.payment-header h2 {
    margin: 0;
    font-size: 22px;
    color: var(--primary-black);
}

.close-payment {
    background: none;
    border: none;
    font-size: 20px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s ease;
}

.close-payment:hover {
    color: var(--primary-red);
}

.payment-content {
    padding: 20px;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    background: white;
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.payment-method.active {
    border-color: #ff9621;
    background: #fff7f0;
}

.payment-method img {
    width: 24px;
    height: 24px;
}

.payment-breakdown {
    background: #f8f9fa;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
}

.breakdown-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    color: #666;
}

.breakdown-row.total {
    border-top: 1px solid #eee;
    margin-top: 10px;
    padding-top: 15px;
    color: #111;
    font-weight: bold;
    font-size: 16px;
}

.crypto-amount {
    background: #fff7f0;
    border-radius: 12px;
    padding: 20px;
    margin: 20px 0;
    text-align: center;
}

.crypto-amount h3 {
    font-size: 14px;
    color: #666;
    margin-bottom: 10px;
}

.crypto-amount .amount {
    font-size: 20px;
    color: #111;
    font-weight: bold;
    margin-bottom: 5px;
}

.crypto-amount .rate {
    font-size: 12px;
    color: #888;
}

.address-container {
    background: white;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.payment-address {
    font-family: monospace;
    font-size: 14px;
    color: #333;
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-btn {
    background: #ff9621;
    color: white;
    border: none;
    border-radius: 6px;
    padding: 8px;
    cursor: pointer;
}

.countdown-container {
    text-align: center;
    margin-top: 20px;
}

#paymentCountdown {
    color: #666;
    font-size: 14px;
    margin-bottom: 10px;
}

.countdown-bar {
    height: 4px;
    background: #ff9621;
    border-radius: 2px;
    transition: width 1s linear;
}

.status-message {
    text-align: center;
    padding: 20px;
    color: #666;
    font-size: 14px;
}

.spinner {
    border: 2px solid #ff9621;
    border-top: 2px solid transparent;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
    margin: 0 auto 10px;
}

.payment-container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
}

.payment-methods-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-bottom: 20px;
    width: 100%;
    max-width: 300px;
    margin-left: auto;
    margin-right: auto;
}

.payment-method {
    border: 2px solid #eee;
    border-radius: 12px;
    padding: 18px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    width: 100%;
    height: 110px;
    margin: 0 auto;
    background-color: white;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.05);
}

.payment-method:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
}

.payment-method.active {
    border-color: var(--primary-orange);
    background-color: rgba(var(--primary-orange-rgb), 0.05);
}

.payment-method img {
    height: 40px;
    width: auto;
}

.method-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.method-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.method-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.payment-method span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.payment-method.disabled .method-info span:first-child {
    color: #999;
}

.coming-soon-badge {
    font-size: 12px;
    color: #ff9621;
    font-weight: 500;
    background: rgba(255, 150, 33, 0.1);
    padding: 2px 8px;
    border-radius: 12px;
    display: inline-block;
}

.payment-methods {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.payment-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #ddd;
    border-radius: 12px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
}

.payment-method:hover {
    border-color: #ff9621;
}

.payment-method.active {
    border-color: #ff9621;
    background: linear-gradient(to right, #ff9621, #ff5951);
}

.payment-method.active span {
    color: white;
}

.method-logo {
    width: 32px;
    height: 32px;
    margin-right: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 50%;
    padding: 4px;
}

.method-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-method span {
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.continue-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(to right, #ff9621, #ff5951);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.3s;
}

.continue-btn:hover {
    opacity: 0.9;
}

.payment-loading {
    text-align: center;
    padding: 40px 20px;
}

.spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 16px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #ff9621;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

.payment-details {
    width: 100%;
    text-align: center;
}

.qr-code {
    margin: 0 auto 12px;
    width: 120px;
    height: 120px;
}

.qr-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f5f5f5;
    border-radius: 8px;
}

.qr-grid {
    width: 120px;
    height: 120px;
    background-image: 
        linear-gradient(to right, #ddd 1px, transparent 1px),
        linear-gradient(to bottom, #ddd 1px, transparent 1px);
    background-size: 10px 10px;
    position: relative;
}

.qr-grid::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    width: 100px;
    height: 100px;
    background-color: #f5f5f5;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100"><rect x="10" y="10" width="30" height="30" fill="%23000"/><rect x="60" y="10" width="30" height="30" fill="%23000"/><rect x="10" y="60" width="30" height="30" fill="%23000"/><rect x="30" y="30" width="40" height="40" fill="%23000"/></svg>');
    background-repeat: no-repeat;
    z-index: 1;
}

.wallet-address {
    margin-bottom: 20px;
}

.payment-token-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 15px;
    gap: 8px;
}

.payment-token-header img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.payment-token-header h3 {
    font-size: 16px;
    margin: 0;
}

.address-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

code {
    background-color: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 14px;
    word-break: break-all;
    display: inline-block;
    max-width: 240px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.copy-address {
    background: none;
    border: none;
    color: var(--primary-orange);
    cursor: pointer;
    font-size: 16px;
    transition: color 0.3s ease;
}

.copy-address:hover {
    color: var(--primary-red);
}

.payment-status {
    margin-bottom: 12px;
    padding: 8px;
    border-radius: 6px;
    background-color: rgba(var(--primary-orange-rgb), 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
}

.status-spinner {
    border: 3px solid rgba(var(--primary-orange-rgb), 0.1);
    border-radius: 50%;
    border-top: 3px solid var(--primary-orange);
    width: 20px;
    height: 20px;
    animation: spin 1s linear infinite;
}

.payment-status p {
    margin: 0;
}

.payment-status p.success {
    color: #36b37e;
    font-weight: 700;
}

.payment-status p.error {
    color: var(--primary-red);
    font-weight: 700;
}

.success-icon {
    color: #36b37e;
    font-size: 24px;
}

.plain-sol-logo {
    width: 24px;
    height: 24px;
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
}

.email-container {
    margin: 20px 0;
    text-align: center;
}

.email-container label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #333;
}

.email-container input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.email-container input:focus {
    outline: none;
    border-color: var(--primary-orange);
    box-shadow: 0 0 0 2px rgba(255, 150, 33, 0.2);
}

.wallet-connect {
    margin-top: 20px;
}

.payment-option {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #eee;
    border-radius: 6px;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    background-color: white;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    font-family: inherit;
    font-size: 14px;
    text-align: left;
    height: auto;
}

.payment-option img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.payment-option:hover {
    border-color: var(--primary-orange);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.payment-option.active {
    border-color: var(--primary-orange);
    background-color: rgba(var(--primary-orange-rgb), 0.05);
}

.payment-option.disabled {
    opacity: 0.8;
    cursor: not-allowed;
    position: relative;
    overflow: hidden;
}

.lock-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #888;
    font-size: 12px;
    z-index: 1;
}

.coming-soon-badge {
    position: absolute;
    top: 0;
    right: 0;
    background: linear-gradient(135deg, #888, #555);
    color: white;
    font-size: 10px;
    padding: 3px 6px;
    border-radius: 0 6px 0 6px;
    font-weight: 600;
}

.continue-payment-btn {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    padding: 10px 18px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 15px auto 0;
    width: auto;
    min-width: 150px;
    font-size: 14px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.continue-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 150, 33, 0.3);
}

.phantom-button-plain {
    background-color: white;
    color: #333;
    border: 1px solid #ddd;
    padding: 10px 20px;
    border-radius: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.phantom-button-plain:hover {
    border-color: var(--primary-orange);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.phantom-button {
    background-color: #555;
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.phantom-button:hover {
    background-color: #333;
    transform: translateY(-2px);
}

.phantom-button img {
    height: 20px;
    width: auto;
}

.test-payment-controls {
    margin-top: 20px;
    border-top: 1px dashed #ddd;
    padding-top: 15px;
}

.pay-with-crypto {
    background: linear-gradient(135deg, var(--primary-orange), var(--primary-red));
    color: white;
    padding: 14px 22px;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 12px;
    width: 100%;
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.pay-with-crypto:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 150, 33, 0.3);
}

.connect-wallet {
    background-color: white;
    color: var(--primary-black);
    border: 2px solid var(--primary-orange);
    padding: 14px 22px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    transition: all 0.3s ease;
}

.connect-wallet:hover {
    background-color: rgba(255, 150, 33, 0.05);
    transform: translateY(-2px);
}

.exchange-info {
    margin: 15px 0;
    padding: 10px 15px;
    background-color: rgba(255, 150, 33, 0.1);
    border-radius: 8px;
    text-align: center;
}

.payment-summary {
    margin: 20px 0;
    background-color: #f9f9f9;
    border-radius: 8px;
    padding: 15px;
    border: 1px solid #eee;
}

.payment-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    font-size: 14px;
}

.payment-row:not(:last-child) {
    border-bottom: 1px dashed #eee;
}

.fee-row {
    color: #666;
}

.total-row {
    font-weight: 700;
    font-size: 16px;
    color: var(--primary-black);
    margin-top: 5px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.wallet-address {
    margin-top: 20px;
    background-color: rgba(255, 150, 33, 0.05);
    padding: 15px;
    border-radius: 8px;
    border-left: 3px solid var(--primary-orange);
}

.exchange-amount {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-orange);
    margin-bottom: 5px;
}

.exchange-rate {
    font-size: 0.9rem;
    color: #666;
}

.payment-error {
    text-align: center;
    color: var(--primary-red);
}

.payment-error i {
    font-size: 48px;
    margin-bottom: 15px;
}

.retry-btn {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 30px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 15px;
}

.retry-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 150, 33, 0.3);
}

.payment-success {
    text-align: center;
    padding: 20px;
}

.payment-success .success-icon {
    font-size: 64px;
    margin-bottom: 20px;
    color: #36b37e;
}

.payment-success h2 {
    margin: 0 0 10px;
    color: var(--primary-black);
}

.close-payment-btn {
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 30px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 20px;
}

.close-payment-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(255, 150, 33, 0.3);
}

/* Payment Details Styling */
.payment-details {
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.payment-status {
    text-align: center;
    margin-bottom: 20px;
}

.payment-status h3 {
    color: #111;
    margin-bottom: 10px;
}

.payment-info {
    background: #fff7f0;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
}

.amount-row {
    font-size: 18px;
    font-weight: bold;
    color: #111;
    margin-bottom: 10px;
}

.crypto-amount {
    color: #ff9621;
    font-size: 16px;
    margin-bottom: 15px;
}

.address-container {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    padding: 10px;
    border-radius: 6px;
    border: 1px solid #ddd;
}

.payment-address {
    font-family: monospace;
    font-size: 14px;
    color: #333;
    word-break: break-all;
    margin: 0;
    flex: 1;
}

.copy-btn {
    background: #ff9621;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 8px;
    cursor: pointer;
    transition: background 0.2s;
}

.copy-btn:hover {
    background: #ff5951;
}

.countdown-container {
    margin-top: 20px;
}

.countdown-bar {
    height: 4px;
    background: #4CAF50;
    border-radius: 2px;
    transition: width 1s linear, background-color 0.3s;
    width: 100%;
}

#paymentCountdown {
    text-align: center;
    margin-top: 8px;
    color: #666;
    font-size: 14px;
}

.status-spinner {
    width: 30px;
    height: 30px;
    border: 3px solid #ff9621;
    border-top: 3px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 15px auto;
}

.payment-loading {
    text-align: center;
    padding: 30px;
}

.payment-loading .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #ff9621;
    border-top: 4px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 15px;
}

.payment-error {
    text-align: center;
    padding: 20px;
}

.error {
    color: #ff5951;
    margin-bottom: 15px;
}

.retry-btn {
    background: linear-gradient(45deg, #ff9621, #ff5951);
    color: white;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.retry-btn:hover {
    opacity: 0.9;
}

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

/* Success Message Styling */
.success {
    color: #4CAF50;
    margin-bottom: 15px;
}

.order-details {
    background: #f5f5f5;
    padding: 15px;
    border-radius: 6px;
    margin-top: 15px;
}

.order-details p {
    margin: 5px 0;
    color: #333;
}

/* Payment Container Styles */
.payment-container {
    max-width: 500px;
    margin: 0 auto;
    padding: 20px;
}

/* Section Headings */
.payment-container h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 16px;
}

/* Email Section */
.email-section {
    margin-bottom: 32px;
    text-align: left;
}

.email-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 16px;
}

.email-input-container {
    position: relative;
    margin-bottom: 8px;
}

#delivery-email {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    font-size: 16px;
    color: #111111;
    transition: all 0.3s ease;
    background: white;
}

#delivery-email:focus {
    border-color: #ff9621;
    outline: none;
    box-shadow: 0 0 0 3px rgba(255, 150, 33, 0.1);
}

#delivery-email::placeholder {
    color: #999;
}

#delivery-email.error {
    border-color: #ff3b30;
    box-shadow: 0 0 0 3px rgba(255, 59, 48, 0.1);
}

.email-help {
    font-size: 14px;
    color: #666;
    margin-top: 8px;
    margin-left: 4px;
}

.email-error {
    color: #ff3b30;
    font-size: 14px;
    margin-top: 8px;
    margin-left: 4px;
}

/* Payment Section */
.payment-section {
    margin-bottom: 32px;
}

.payment-section h3 {
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    margin-bottom: 16px;
}

/* Cart Notification */
#cartNotification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: linear-gradient(90deg, var(--primary-orange), var(--primary-red));
    color: white;
    padding: 12px 20px;
    border-radius: 8px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    transform: translateY(100px);
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 2000;
}

#cartNotification.show {
    transform: translateY(0);
    opacity: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cart-modal, .payment-modal {
        width: 90%;
    }
    
    .cart-item {
        flex-direction: column;
    }
    
    .cart-item-image {
        width: 100%;
        height: 150px;
        margin-right: 0;
        margin-bottom: 15px;
    }
    
    .remove-item {
        top: 10px;
        right: 10px;
        background-color: rgba(255, 255, 255, 0.8);
        border-radius: 50%;
        width: 30px;
        height: 30px;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .payment-methods-list {
        grid-template-columns: 1fr;
    }
    
    .qr-code {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 480px) {
    .cart-header h2, .payment-header h2 {
        font-size: 18px;
    }
    
    .cart-total {
        font-size: 16px;
    }
    
    .checkout-btn {
        padding: 10px 15px;
        font-size: 14px;
    }
    
    code {
        max-width: 180px;
        font-size: 12px;
    }
}

.payment-breakdown {
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border: 1px solid #eee;
}

.payment-breakdown h4 {
    color: #111;
    margin: 0 0 10px 0;
    font-size: 16px;
}

.breakdown-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    color: #666;
    font-size: 14px;
}

.breakdown-item:not(:last-child) {
    border-bottom: 1px dashed #eee;
}

.breakdown-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 2px solid #eee;
    font-weight: bold;
    color: #111;
    font-size: 16px;
}

.fee-info {
    color: #888;
    font-size: 12px;
    margin-top: 5px;
    font-style: italic;
}
