/* --- SCOPED CSS with Unique Prefixes (gy-pay-) --- */

/* Reset & Base for the Payment Component */
.gy-pay-wrapper * {
    box-sizing: border-box;
}

/* Main Container Card */
.gy-pay-card {
    width: 100%;
    max-width: 1024px;
    background-color: #ffffff;
    border-radius: 24px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    margin: 20px auto;
}

@media (min-width: 1024px) {
    .gy-pay-card {
        flex-direction: row;
    }
}

/* --- Left Column (Input Area) --- */
.gy-pay-left-col {
    padding: 32px;
    background-color: #ffffff;
    width: 100%;
}

@media (min-width: 640px) {
    .gy-pay-left-col {
        padding: 48px;
    }
}

@media (min-width: 1024px) {
    .gy-pay-left-col {
        width: 60%;
    }
}

.gy-pay-logos {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.gy-pay-logo {
    height: 80px;
    width: auto;
    object-fit: contain;
}

.gy-pay-title {
    font-size: 24px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px 0;
}

.gy-pay-subtitle {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 32px;
}

/* Form Layout */
.gy-pay-form-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 32px;
}

@media (min-width: 768px) {
    .gy-pay-form-grid {
        grid-template-columns: 1fr 2fr;
    }

    .gy-wire-card .gy-pay-form-grid {
        grid-template-columns: 2fr 1fr;
    }
}

.gy-pay-label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 8px;
}

.gy-pay-input-group {
    position: relative;
}

.gy-pay-select,
.gy-pay-input {
    width: 100%;
    padding: 12px 16px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    outline: none;
    transition: all 0.2s;
    color: #334155;
}

.gy-pay-select {
    padding-left: 40px;
    font-weight: 600;
    appearance: none;
    cursor: pointer;
}

.gy-pay-input {
    padding-left: 32px;
    font-size: 18px;
    font-weight: 700;
    color: #334155;
}

.gy-pay-select:focus,
.gy-pay-input:focus {
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
}

/* Icons inside inputs */
.gy-pay-icon-left {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
}

.gy-pay-icon-right {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #94a3b8;
    pointer-events: none;
    font-size: 12px;
}

.gy-pay-currency-symbol {
    position: absolute;
    left: 16px;
    top: 50%;
    font-size: 12px;
    transform: translateY(-50%);
    color: #94a3b8;
    font-weight: 700;
    pointer-events: none;
}

/* Breakdown Box */
.gy-pay-breakdown {
    background-color: #eff6ff;
    border: 1px solid #dbeafe;
    border-radius: 16px;
    padding: 24px;
    display: none;
}

.gy-pay-breakdown.visible {
    display: block;
    animation: gyFadeIn 0.5s ease-in;
}

@keyframes gyFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gy-pay-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    color: #475569;
}

.gy-pay-row-lg {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 20px;
    font-weight: 700;
    color: #1e3a8a;
}

.gy-pay-val {
    font-weight: 600;
    color: #0f172a;
}

.gy-pay-val-green {
    font-weight: 600;
    color: #059669;
}

.gy-pay-divider {
    border-top: 1px dashed #bfdbfe;
    margin: 12px 0;
}

.gy-pay-subtext {
    display: block;
    font-size: 10px;
    color: #94a3b8;
    margin-top: 2px;
}

/* Wire Payment Link */
.gy-pay-wire-link {
    font-size: 14px;
    color: #64748b;
    margin-top: 20px;
    text-align: center;
}

.gy-pay-wire-link a {
    color: #2563eb;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.gy-pay-wire-link a:hover {
    color: #1d4ed8;
    text-decoration: underline;
}

/* Button */
.gy-pay-btn {
    width: 100%;
    background-color: #2563eb;
    color: white;
    font-weight: 700;
    padding: 16px;
    border-radius: 12px;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    font-size: 16px;
    transition: background-color 0.2s, transform 0.1s;
    margin-top: 32px;
    box-shadow: 0 10px 15px -3px rgba(30, 58, 138, 0.5);
}

.gy-pay-btn:hover {
    background-color: #3b82f6;
}

.gy-pay-btn:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.gy-pay-btn i {
    transition: transform 0.2s;
}

.gy-pay-btn:hover i {
    transform: translateX(4px);
}

/* Success/Cancel Message Boxes */
.gy-pay-message {
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
    animation: gySlideIn 0.5s ease-out;
}

@keyframes gySlideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gy-pay-message-success {
    background-color: #d1fae5;
    border: 2px solid #34d399;
    color: #065f46;
}

.gy-pay-message-cancel {
    background-color: #fee2e2;
    border: 2px solid #f87171;
    color: #991b1b;
}

.gy-pay-message-icon {
    font-size: 32px;
    flex-shrink: 0;
}

.gy-pay-message-content h3 {
    margin: 0 0 8px 0;
    font-size: 18px;
    font-weight: 700;
}

.gy-pay-message-content p {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
}

/* --- Right Column (Dark Details) --- */
.gy-pay-right-col {
    background-color: #0f172a;
    /* Slate-900 */
    color: white;
    padding: 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    gap: 32px;
    overflow: hidden;
    width: 100%;
}

@media (min-width: 640px) {
    .gy-pay-right-col {
        padding: 48px;
    }
}

@media (min-width: 1024px) {
    .gy-pay-right-col {
        width: 40%;
    }
}

/* Background decoration */
.gy-pay-bg-blob {
    position: absolute;
    top: -64px;
    right: -64px;
    width: 256px;
    height: 256px;
    border-radius: 50%;
    background-color: #2563eb;
    opacity: 0.2;
    filter: blur(64px);
    pointer-events: none;
}

.gy-pay-secure-badge {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #34d399;
    /* Emerald-400 */
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.gy-pay-info-box {
    background-color: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 16px;
    color: #cbd5e1;
    font-size: 12px;
}

.gy-pay-info-title {
    font-size: 18px;
    font-weight: 600;
    color: white;
    margin-bottom: 16px;
}

.gy-pay-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.gy-pay-list li {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
}

.gy-pay-list span:last-child {
    color: white;
}

.gy-pay-footer-note {
    margin-top: 16px;
    padding-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.4;
}

/* Card Icons */
.gy-pay-card-icons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    opacity: 0.5;
    filter: grayscale(100%);
    transition: 0.3s;
    font-size: 24px;
}

.gy-pay-card-icons:hover {
    opacity: 1;
    filter: grayscale(0%);
}

/* --- Wire Payment Specific Styles --- */

.gy-wire-details {
    margin-top: 32px;
    animation: gyFadeIn 0.5s ease-in;
}

.gy-wire-section-title {
    font-size: 16px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f1f5f9;
}

.gy-wire-section-title i {
    color: #2563eb;
}

.gy-wire-info-grid {
    display: grid;
    gap: 12px;
}

.gy-wire-row {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background-color: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
}

.gy-wire-row:hover {
    border-color: #3b82f6;
    background-color: #eff6ff;
}

.gy-wire-row:hover .gy-wire-value {
    color: #2563eb;
}

.gy-wire-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #64748b;
    margin-bottom: 4px;
    font-weight: 700;
}

.gy-wire-value {
    font-size: 12px;
    font-weight: 600;
    color: #334155;
    word-break: break-all;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gy-wire-value i {
    opacity: 0;
    transform: translateX(-5px);
    transition: all 0.2s;
    color: #3b82f6;
}

.gy-wire-row:hover .gy-wire-value i {
    opacity: 1;
    transform: translateX(0);
}

/* Copied Toast */
.gy-wire-copied-toast {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(20px);
    background-color: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    z-index: 10;
}

.gy-wire-copied-toast.visible {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

@media (min-width: 640px) {
    .gy-wire-row {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }

    .gy-wire-label {
        margin-bottom: 0;
        min-width: 140px;
    }

    .gy-wire-value {
        text-align: right;
        flex-grow: 1;
        justify-content: flex-end;
        gap: 10px;
    }
}

/* Process Box */
.gy-pay-process-box {
    margin-top: 0;
    position: relative;
}

.gy-process-step {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    /* Increased slightly to give room for line */
    position: relative;
}

.gy-process-step:last-child {
    margin-bottom: 0px;
}

/* Connecting Line */
.gy-process-step:not(:last-child)::before {
    content: '';
    position: absolute;
    left: 11px;
    top: 28px;
    width: 2px;
    height: calc(100% + 4px);
    /* Connects to the next circle roughly */
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 0;
}

.gy-step-num {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    background-color: #2563eb;
    color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 4px;
}

.gy-step-text {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gy-step-text strong {
    color: white;
    font-size: 14px;
    font-weight: 600;
}

.gy-step-text span {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.4;
}