/**
 * GoodFellas WooCommerce Withdrawal Button - Premium Stylesheet
 */

:root {
    --gf-primary: var(--color-primary);
    --gf-primary-hover: var(--color-secondary);
    --gf-primary-light: rgba(79, 70, 229, 0.1);
    --gf-text-dark: #1f2937;
    --gf-text-muted: #6b7280;
    --gf-border: #e5e7eb;
    --gf-bg-light: #f9fafb;
    --gf-success: #10b981;
    --gf-success-light: #ecfdf5;
    --gf-error: #ef4444;
    --gf-error-light: #fef2f2;
    --gf-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -4px rgba(0, 0, 0, 0.05);
    --gf-transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gf-withdrawal-wrapper {
    max-width: 650px;
    margin: 40px auto;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    color: var(--gf-text-dark);
}

/* Step Progress Indicator */
.gf-step-progress {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 30px;
    padding: 0 10px;
}

.gf-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 1;
    text-align: center;
    width: 120px;
}

.gf-step-number {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: #ffffff;
    border: 2px solid var(--gf-border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 14px;
    color: var(--gf-text-muted);
    transition: var(--gf-transition);
}

.gf-step-label {
    margin-top: 8px;
    font-size: 13px;
    font-weight: 500;
    color: var(--gf-text-muted);
    transition: var(--gf-transition);
}

.gf-step-line {
    flex: 1;
    height: 2px;
    background-color: var(--gf-border);
    margin: 0 -20px;
    transform: translateY(-13px);
    z-index: 0;
    transition: var(--gf-transition);
}

/* Active and Completed Steps */
.gf-step.active .gf-step-number {
    border-color: var(--gf-primary);
    background-color: var(--gf-primary);
    color: #ffffff;
    box-shadow: 0 0 0 4px var(--gf-primary-light);
}

.gf-step.active .gf-step-label {
    color: var(--gf-primary);
    font-weight: 600;
}

.gf-step.completed .gf-step-number {
    border-color: var(--gf-success);
    background-color: var(--gf-success);
    color: #ffffff;
}

.gf-step.completed .gf-step-label {
    color: var(--gf-success);
}

.gf-step-progress.step-2-active .gf-step-line {
    background: linear-gradient(to right, var(--gf-primary), var(--gf-border));
}

.gf-step-progress.step-3-active .gf-step-line {
    background: var(--gf-success);
}

/* Form Card */
.gf-form-card {
    background: #ffffff;
    border: 1px solid var(--gf-border);
    border-radius: 16px;
    box-shadow: var(--gf-shadow);
    padding: 35px;
    overflow: hidden;
    position: relative;
    transition: height 0.3s ease;
}

/* Wizard Step Animation Container */
.gf-wizard-step {
    animation: gfFadeIn 0.35s ease-out forwards;
}

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

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

.gf-policy-text {
    gap: var(--gap);
    display: flex;
    flex-direction: column;
    margin-bottom: 25px;
}

.gf-policy-text p:last-child {
    margin-bottom: 0;
}

/* Form Groups & Inputs */
.gf-form-group {
    margin-bottom: 20px;
}

.gf-form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: var(--gf-text-dark);
    margin-bottom: 8px;
}

.gf-withdrawal-wrapper input[type="text"],
.gf-withdrawal-wrapper input[type="email"],
.gf-withdrawal-wrapper textarea,
.gf-withdrawal-wrapper select {
    width: 100%;
    padding: 12px 16px;
    border: 1.5px solid var(--gf-border);
    border-radius: var(--br);
    font-size: 14px;
    color: var(--gf-text-dark);
    background-color: #ffffff;
    box-sizing: border-box;
    transition: var(--gf-transition);
}

.gf-withdrawal-wrapper input[type="text"]:focus,
.gf-withdrawal-wrapper input[type="email"]:focus,
.gf-withdrawal-wrapper textarea:focus,
.gf-withdrawal-wrapper select:focus {
    outline: none;
    border-color: var(--gf-primary);
    box-shadow: 0 0 0 4px var(--gf-primary-light);
}

.gf-withdrawal-wrapper textarea {
    resize: vertical;
}

/* Spinner */
.gf-spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: gfRotate 0.6s linear infinite;
    display: inline-block;
}

.btn--light .gf-spinner,
.btn--ligh .gf-spinner {
    border-color: rgba(0, 0, 0, 0.1);
    border-top-color: var(--gf-text-dark);
}

@keyframes gfRotate {
    to {
        transform: rotate(360deg);
    }
}

/* Form Actions Layout */
.gf-form-actions {
    display: flex;
    justify-content: space-between;
    margin-top: 30px;
    gap: 15px;
}

/* Dynamic Order Summary Panel */
.gf-order-summary-box {
    background-color: var(--gf-bg-light);
    border: 1px solid var(--gf-border);
    border-radius: var(--br);
    padding: 20px;
    margin-bottom: 25px;
}

.gf-order-summary-title {
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 12px;
    color: var(--gf-text-dark);
}

.gf-order-summary-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 20px;
    font-size: 13px;
    color: var(--gf-text-muted);
}

.gf-order-summary-grid strong {
    color: var(--gf-text-dark);
}

/* Products Return Grid */
.gf-product-row {
    display: flex;
    align-items: center;
    padding: 15px;
    border: 1px solid var(--gf-border);
    border-radius: var(--br);
    margin-bottom: 12px;
    background-color: #ffffff;
    transition: var(--gf-transition);
}

.gf-product-row:hover {
    border-color: var(--gf-primary);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.gf-product-checkbox-col {
    padding-right: 15px;
    display: flex;
    align-items: center;
}

/* Custom Checkbox Design */
.gf-custom-checkbox-wrapper {
    position: relative;
    display: inline-block;
    width: 22px;
    height: 22px;
}

.gf-custom-checkbox-wrapper input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.gf-checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 22px;
    width: 22px;
    background-color: #ffffff;
    border: 2px solid var(--gf-border);
    border-radius: var(--br);
    transition: var(--gf-transition);
}

.gf-custom-checkbox-wrapper:hover input~.gf-checkmark {
    border-color: var(--gf-primary);
}

.gf-custom-checkbox-wrapper input:checked~.gf-checkmark {
    background-color: var(--gf-primary);
    border-color: var(--gf-primary);
}

.gf-checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.gf-custom-checkbox-wrapper input:checked~.gf-checkmark:after {
    display: block;
}

.gf-custom-checkbox-wrapper .gf-checkmark:after {
    left: 7px;
    top: 3px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.gf-product-thumbnail-col img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: var(--br);
    border: 1px solid var(--gf-border);
    display: block;
}

.gf-product-info-col {
    flex: 1;
    padding-left: 15px;
    padding-right: 15px;
}

.gf-product-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--gf-text-dark);
}

.gf-product-price {
    font-size: 13px;
    color: var(--gf-text-muted);
}

.gf-product-qty-col {
    width: 100px;
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.gf-product-qty-col label {
    font-size: 11px;
    text-transform: uppercase;
    color: var(--gf-text-muted);
    font-weight: 700;
    margin-bottom: 0;
}

.gf-product-qty-col select {
    padding: 6px 10px !important;
    font-size: 13px !important;
    border-radius: var(--br) !important;
    width: 75px !important;
    height: auto !important;
    background-position: right 8px center !important;
}

/* Error/Notice Message Box */
.gf-error-message {
    background-color: var(--gf-error-light);
    border: 1.5px solid var(--gf-error);
    color: var(--gf-error);
    padding: 15px;
    border-radius: var(--br);
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 20px;
    font-weight: 500;
    animation: gfShake 0.4s ease;
}

@keyframes gfShake {

    0%,
    100% {
        transform: translateX(0);
    }

    25% {
        transform: translateX(-5px);
    }

    75% {
        transform: translateX(5px);
    }
}

/* Success Card CSS */
.gf-success-card {
    text-align: center;
    padding: 20px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gf-success-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background-color: var(--gf-success-light);
    color: var(--gf-success);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
    box-shadow: 0 0 0 8px #f0fdf4;
}

.gf-success-icon svg {
    width: 32px;
    height: 32px;
}

.gf-success-text-content {
    text-align: left;
    padding-block: var(--padding-container-block);
    display: flex;
    flex-direction: column;
    gap: var(--gap);

}

.gf-success-text-content p {
    margin-bottom: 0;
}

/* Disabled items layout */
.gf-product-row.disabled {
    opacity: 0.6;
    background-color: var(--gf-bg-light);
}

.gf-product-row.disabled:hover {
    border-color: var(--gf-border);
    box-shadow: none;
}

.gf-product-row.already-returned {
    opacity: 0.45;
    background-color: #fafafa;
    cursor: not-allowed !important;
}

.gf-product-row.already-returned * {
    cursor: not-allowed !important;
    pointer-events: none !important;
}

.gf-custom-checkbox-wrapper input[type="checkbox"]:disabled ~ .gf-checkmark {
    background-color: #f3f4f6;
    border-color: var(--gf-border);
    cursor: not-allowed;
}

.gf-custom-checkbox-wrapper input[type="checkbox"]:disabled {
    cursor: not-allowed;
}

.gf-already-returned-badge {
    display: inline-block;
    background-color: var(--gf-error-light);
    color: var(--gf-error);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 8px;
    border-radius: 12px;
    margin-left: 8px;
    vertical-align: middle;
    text-transform: uppercase;
}