/* ================================================
   Inline Checkout Panel Styles
   ================================================ */

.inline-checkout-panel {
    margin-top: 1.5rem;
}

.inline-checkout-trigger {
    width: 100%;
}

.inline-checkout-content {
    margin-top: 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    overflow: hidden;
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.inline-checkout-content[hidden] {
    display: none;
}

/* Checkout Summary */
.checkout-summary {
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}

.checkout-summary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 1.25rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.checkout-summary-header h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.checkout-collapse-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.checkout-collapse-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.checkout-summary-body {
    padding: 1.25rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 0.75rem 0;
    border-bottom: 1px solid #e5e7eb;
    gap: 1rem;
}

.summary-item:last-of-type {
    border-bottom: none;
}

.summary-item span {
    color: #6b7280;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.summary-item strong {
    color: #111827;
    font-weight: 600;
    text-align: left;
}

.summary-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0 0;
    margin-top: 0.5rem;
    border-top: 2px solid #d1d5db;
    font-size: 1.125rem;
}

.summary-total span {
    color: #374151;
    font-weight: 600;
}

.summary-total strong {
    color: #10b981;
    font-weight: 700;
    font-size: 1.25rem;
}

.dp-tax-note {
    display: block;
    margin-top: 4px;
    color: #166534;
    font-size: 0.76rem;
    font-weight: 800;
    line-height: 1.45;
}

.dp-price {
    margin: 14px 0;
}

/* Payment Section */
.checkout-payment-section {
    padding: 1.5rem 1.25rem;
}

.checkout-payment-section h3 {
    margin: 0 0 1rem;
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Payment Grid - reuse existing payment card styles */
.payment-grid {
    display: grid;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.payment-card {
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem;
    cursor: pointer;
    transition: all 0.2s;
    background: white;
    position: relative;
}

.payment-card:hover {
    border-color: #667eea;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.1);
}

.payment-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.payment-card input[type="radio"]:checked+span {
    color: #667eea;
}

.payment-card input[type="radio"]:checked~* {
    border-color: #667eea;
}

.payment-check {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    width: 24px;
    height: 24px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    transition: all 0.2s;
}

.payment-card input[type="radio"]:checked~.payment-check {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.payment-choice-head {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
    padding-right: 2.5rem;
}

.payment-choice-head strong {
    display: block;
    color: #111827;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.payment-choice-head small {
    display: block;
    color: #6b7280;
    font-size: 0.875rem;
    line-height: 1.4;
}

.payment-method-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.75rem;
}

.payment-method-badges em {
    font-style: normal;
    background: #f3f4f6;
    color: #4b5563;
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}

/* Submit Bar */
.checkout-submit-bar {
    margin-top: 1.5rem;
}

.checkout-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: all 0.2s;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.2);
}

.checkout-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(16, 185, 129, 0.3);
}

.checkout-submit-btn:active {
    transform: translateY(0);
}

.checkout-secure-note {
    text-align: center;
    color: #6b7280;
    font-size: 0.875rem;
    margin-top: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.checkout-secure-note i {
    color: #10b981;
}

/* Responsive */
@media (max-width: 768px) {
    .checkout-summary-header {
        padding: 0.875rem 1rem;
    }

    .checkout-summary-body,
    .checkout-payment-section {
        padding: 1rem;
    }

    .summary-item {
        flex-direction: column;
        gap: 0.25rem;
    }

    .summary-item strong {
        text-align: right;
    }
}

/* Integration with existing .dp-cta button */
.dp-cta[data-checkout-toggle] {
    width: 100%;
}

/* Update variant selector to work with inline checkout */
[data-variant-selector] {
    margin-bottom: 1rem;
}

/* Payment provider widgets */
.payment-provider-widget {
    margin-top: 0.75rem;
}

.payment-provider-widget--tabby,
.payment-provider-widget--tamara {
    display: block;
    min-height: 24px;
}
