/**
 * Product Landing Page Checkout Styles
 * GifBee Theme Matched: Primary #fc4100 | Secondary #ff5e27
 */

:root {
    --plc-primary: #fc4100;
    --plc-primary-hover: #e03a00;
    --plc-secondary: #ff5e27;
    --plc-gradient: linear-gradient(135deg, #fc4100 0%, #ff5e27 100%);
    --plc-gradient-hover: linear-gradient(135deg, #e03a00 0%, #fc4100 100%);
    --plc-tint-bg: #fff7f4;
    --plc-dark: #1e293b;
    --plc-text: #334155;
    --plc-light-bg: #f8fafc;
    --plc-border: #e2e8f0;
    --plc-border-focus: #fc4100;
    --plc-radius: 12px;
    --plc-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --plc-shadow-hover: 0 10px 25px -5px rgba(252, 65, 0, 0.15);
}

.wc-plc-checkout-wrapper {
    max-width: 1100px;
    margin: 35px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--plc-text);
    box-sizing: border-box;
}

.wc-plc-checkout-wrapper * {
    box-sizing: border-box;
}

.wc-plc-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    align-items: flex-start;
}

.wc-plc-col {
    flex: 1 1 450px;
}

.wc-plc-col-billing {
    flex: 1.2;
}

.wc-plc-col-summary {
    flex: 1;
}

.wc-plc-card {
    background: #ffffff;
    border: 1px solid var(--plc-border);
    border-radius: var(--plc-radius);
    padding: 28px;
    box-shadow: var(--plc-shadow);
    transition: box-shadow 0.25s ease;
}

.wc-plc-card:hover {
    box-shadow: 0 8px 20px -4px rgba(0, 0, 0, 0.08);
}

.wc-plc-card-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 19px;
    font-weight: 700;
    color: var(--plc-dark);
    margin: 0 0 22px 0;
    padding-bottom: 14px;
    border-bottom: 2px solid #f1f5f9;
}

.wc-plc-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    background: var(--plc-gradient);
    color: #ffffff;
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 3px 8px rgba(252, 65, 0, 0.25);
}

.wc-plc-field {
    margin-bottom: 18px;
}

.wc-plc-field-label {
    display: block;
    font-weight: 600;
    font-size: 14px;
    color: #1e293b;
    margin-bottom: 8px;
}

.wc-plc-input,
.wc-plc-textarea,
.wc-plc-attr-select {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border: 1.5px solid var(--plc-border);
    border-radius: 8px;
    outline: none;
    transition: all 0.2s ease;
    background: #ffffff;
    color: #0f172a;
}

.wc-plc-input:focus,
.wc-plc-textarea:focus,
.wc-plc-attr-select:focus {
    border-color: var(--plc-border-focus);
    box-shadow: 0 0 0 3px rgba(252, 65, 0, 0.15);
}

.wc-plc-textarea {
    resize: vertical;
    min-height: 85px;
}

/* Payment Radios */
.wc-plc-payment-radios {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.wc-plc-radio-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border: 1.5px solid var(--plc-border);
    border-radius: 8px;
    background: var(--plc-light-bg);
    cursor: pointer;
    transition: all 0.2s ease;
}

.wc-plc-radio-box:hover {
    border-color: #cbd5e1;
    background: #f8fafc;
}

.wc-plc-radio-box.is-selected {
    border-color: var(--plc-primary);
    background: var(--plc-tint-bg);
    box-shadow: 0 0 0 1px var(--plc-primary);
}

.wc-plc-radio-box input[type="radio"] {
    margin-right: 12px;
    accent-color: var(--plc-primary);
    transform: scale(1.15);
}

.wc-plc-radio-title {
    font-weight: 700;
    font-size: 14px;
    color: #0f172a;
    flex-grow: 1;
}

.wc-plc-radio-cost {
    font-weight: 700;
    color: var(--plc-primary);
    font-size: 14px;
}

.wc-plc-gateway-box {
    flex-direction: column;
    align-items: flex-start;
}

.wc-plc-gateway-desc {
    display: block;
    font-size: 12px;
    color: #64748b;
    margin-top: 4px;
    padding-left: 28px;
    line-height: 1.4;
}

/* Product Item Summary */
.wc-plc-product-item {
    display: flex;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--plc-border);
    margin-bottom: 20px;
}

.wc-plc-product-thumb {
    width: 82px;
    height: 82px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: #f8fafc;
    border: 1px solid var(--plc-border);
}

.wc-plc-product-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.wc-plc-product-info {
    flex-grow: 1;
}

.wc-plc-product-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--plc-dark);
    margin: 0 0 6px 0;
    line-height: 1.35;
}

.wc-plc-product-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--plc-primary);
    margin-bottom: 10px;
}

.wc-plc-product-price del {
    color: #94a3b8;
    font-weight: 400;
    margin-right: 6px;
    font-size: 14px;
}

.wc-plc-product-price ins {
    text-decoration: none;
    color: var(--plc-primary);
}

.wc-plc-variations {
    margin: 10px 0;
}

.wc-plc-variation-row {
    margin-bottom: 8px;
}

.wc-plc-attr-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
    display: block;
    margin-bottom: 4px;
}

/* Quantity controls */
.wc-plc-qty-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.wc-plc-qty-label {
    font-size: 13px;
    font-weight: 600;
    color: #475569;
}

.wc-plc-qty-ctrl {
    display: inline-flex;
    align-items: center;
    border: 1.5px solid var(--plc-border);
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
}

.wc-plc-qty-btn {
    background: #f8fafc;
    border: none;
    width: 36px;
    height: 34px;
    font-size: 16px;
    font-weight: 700;
    color: #334155;
    cursor: pointer;
    transition: all 0.15s ease;
    padding: 0;
    line-height: 1;
}

.wc-plc-qty-btn:hover {
    background: var(--plc-tint-bg);
    color: var(--plc-primary);
}

.wc-plc-qty-input {
    width: 44px;
    height: 34px;
    border: none;
    border-left: 1.5px solid var(--plc-border);
    border-right: 1.5px solid var(--plc-border);
    text-align: center;
    font-weight: 700;
    font-size: 15px;
    color: #0f172a;
    background: #ffffff;
    cursor: default;
    -moz-appearance: textfield;
}

.wc-plc-qty-input::-webkit-outer-spin-button,
.wc-plc-qty-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Totals Table */
.wc-plc-totals-table {
    background: var(--plc-light-bg);
    padding: 16px 18px;
    border-radius: 8px;
    border: 1px solid var(--plc-border);
    margin: 20px 0;
}

.wc-plc-totals-row {
    display: flex;
    justify-content: space-between;
    font-size: 14px;
    margin-bottom: 8px;
    color: #475569;
}

.wc-plc-totals-row:last-child {
    margin-bottom: 0;
}

.wc-plc-total-highlight {
    font-size: 18px;
    font-weight: 800;
    color: var(--plc-dark);
    padding-top: 12px;
    border-top: 1px dashed #cbd5e1;
    margin-top: 12px;
}

.wc-plc-total-highlight #wc-plc-grand-total {
    color: var(--plc-primary);
    font-size: 20px;
    font-weight: 800;
}

/* Submit Button */
.wc-plc-submit-btn {
    width: 100%;
    padding: 16px 22px;
    background: var(--plc-gradient);
    color: #ffffff;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 15px rgba(252, 65, 0, 0.35);
    letter-spacing: 0.2px;
}

.wc-plc-submit-btn:hover {
    background: var(--plc-gradient-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(252, 65, 0, 0.45);
}

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

.wc-plc-submit-btn:disabled {
    opacity: 0.65;
    cursor: not-allowed;
    transform: none;
}

.wc-plc-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: wc-plc-spin 0.8s linear infinite;
}

@keyframes wc-plc-spin {
    to { transform: rotate(360deg); }
}

.wc-plc-submit-btn.is-loading .wc-plc-btn-icon,
.wc-plc-submit-btn.is-loading .wc-plc-btn-text {
    opacity: 0.7;
}

.wc-plc-submit-btn.is-loading .wc-plc-spinner {
    display: inline-block;
}

.wc-plc-security-badge {
    text-align: center;
    margin-top: 14px;
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.wc-plc-security-badge span {
    color: #475569;
}

/* Alert Boxes */
.wc-plc-alert {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 20px;
    font-size: 14px;
    line-height: 1.5;
}

.wc-plc-alert-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
}

.wc-plc-alert-success {
    background: #fff7f4;
    border: 1px solid #fed7aa;
    color: var(--plc-primary);
    font-weight: 600;
}

.wc-plc-section-subtitle {
    font-size: 14px;
    font-weight: 700;
    color: #1e293b;
    margin: 16px 0 10px 0;
}

/* Responsive */
@media (max-width: 768px) {
    .wc-plc-grid {
        flex-direction: column;
        gap: 20px;
    }
    .wc-plc-card {
        padding: 20px 16px;
    }
}
