/* =========================================================
   WEBPANDA PAYMENTS
   Automatic Payment Methods and PayFast payment-method management.
   ========================================================= */

/* ============================================================
   WebPanda — Automatic Payment Methods
   ============================================================ */

.webpanda-paymentmethods {
    margin-bottom: 48px;
}

/* Hero
   ============================================================ */

.webpanda-paymentmethods-hero {
    position: relative;
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 25%, rgba(118, 200, 0, .14), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(118, 200, 0, .10), transparent 30%),
        linear-gradient(135deg, #111418 0%, #171d1a 100%);
    color: #fff;
}

.webpanda-paymentmethods-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 230px;
    padding: 42px 46px;
}

.webpanda-paymentmethods-hero-copy {
    max-width: 670px;
}

.webpanda-paymentmethods-eyebrow,
.webpanda-paymentmethods-section-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #76C800;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1.4;
}

.webpanda-paymentmethods-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.webpanda-paymentmethods-hero p {
    max-width: 620px;
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.7;
}

.webpanda-paymentmethods-hero-action {
    flex: 0 0 auto;
}

.webpanda-paymentmethods-hero-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 46px;
    padding: 0 20px;
    border-radius: 10px;
    background: #76C800;
    color: #111418 !important;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        background .2s ease;
}

.webpanda-paymentmethods-hero-button:hover {
    transform: translateY(-1px);
    background: #8DD200;
}

/* Main card
   ============================================================ */

.webpanda-paymentmethods-card {
    overflow: hidden;
    margin-bottom: 20px;
    border: 1px solid #E1E4E7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 20, 24, .04);
}

.webpanda-paymentmethods-card-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 30px 34px 24px;
    border-bottom: 1px solid #ECEEEF;
}

.webpanda-paymentmethods-card-heading h2 {
    margin: 0 0 6px;
    color: #252A2F;
    font-size: 21px;
    font-weight: 700;
}

.webpanda-paymentmethods-card-heading p {
    margin: 0;
    color: #8A9096;
    font-size: 13px;
    line-height: 1.6;
}

/* Stored payment method
   ============================================================ */

.webpanda-paymentmethods-list {
    padding: 0;
}

.webpanda-paymentmethod-item {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 25px 34px;
    border-bottom: 1px solid #ECEEEF;
}

.webpanda-paymentmethod-item:last-child {
    border-bottom: 0;
}

.webpanda-paymentmethod-icon {
    display: flex;
    flex: 0 0 48px;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F1F9E4;
    color: #76C800;
    font-size: 18px;
}

.webpanda-paymentmethod-details {
    flex: 1 1 auto;
    min-width: 0;
}

.webpanda-paymentmethod-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 7px;
}

.webpanda-paymentmethod-title-row h3 {
    margin: 0;
    color: #252A2F;
    font-size: 16px;
    font-weight: 700;
}

.webpanda-paymentmethod-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.webpanda-paymentmethod-status,
.webpanda-paymentmethod-default {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 700;
    line-height: 1;
}

.webpanda-paymentmethod-status {
    background: #F1F3F4;
    color: #666D73;
}

.webpanda-paymentmethod-default {
    background: #EFF8DF;
    color: #4D7700;
}

.webpanda-paymentmethod-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    color: #8A9096;
    font-size: 12px;
}

.webpanda-paymentmethod-meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.webpanda-paymentmethod-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.webpanda-paymentmethod-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 38px;
    padding: 0 13px;
    border: 1px solid #DDE1E4;
    border-radius: 8px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        border-color .2s ease,
        background .2s ease,
        color .2s ease;
}

.webpanda-paymentmethod-action-primary {
    border-color: #76C800;
    background: #76C800;
    color: #111418 !important;
}

.webpanda-paymentmethod-action-primary:hover {
    border-color: #8DD200;
    background: #8DD200;
}

.webpanda-paymentmethod-action-secondary {
    color: #4E555B !important;
}

.webpanda-paymentmethod-action-secondary:hover {
    border-color: #76C800;
    color: #4D7700 !important;
}

.webpanda-paymentmethod-action-delete {
    color: #8A9096 !important;
}

.webpanda-paymentmethod-action-delete:hover {
    border-color: #D5D8DA;
    background: #F6F7F8;
    color: #343A40 !important;
}

.webpanda-paymentmethod-action.disabled {
    pointer-events: none;
    opacity: .45;
}

/* Empty state
   ============================================================ */

.webpanda-paymentmethods-empty {
    display: flex;
    align-items: flex-start;
    gap: 22px;
    padding: 44px 34px 46px;
}

.webpanda-paymentmethods-empty-icon {
    display: flex;
    flex: 0 0 58px;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border-radius: 14px;
    background: #F1F9E4;
    color: #76C800;
    font-size: 21px;
}

.webpanda-paymentmethods-empty-content {
    max-width: 650px;
}

.webpanda-paymentmethods-empty-content h3 {
    margin: 0 0 8px;
    color: #252A2F;
    font-size: 18px;
    font-weight: 700;
}

.webpanda-paymentmethods-empty-content p {
    max-width: 600px;
    margin: 0 0 20px;
    color: #747B81;
    font-size: 13px;
    line-height: 1.7;
}

.webpanda-paymentmethods-empty-content strong {
    color: #30353A;
    font-weight: 700;
}

.webpanda-paymentmethods-empty-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    background: #76C800;
    color: #111418 !important;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        transform .2s ease,
        background .2s ease;
}

.webpanda-paymentmethods-empty-button:hover {
    transform: translateY(-1px);
    background: #8DD200;
}

/* Information box
   ============================================================ */

.webpanda-paymentmethods-info {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 20px 22px;
    border: 1px solid #DFE6D6;
    border-radius: 13px;
    background: #F8FBF4;
}

.webpanda-paymentmethods-info-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #EAF5D7;
    color: #76C800;
    font-size: 14px;
}

.webpanda-paymentmethods-info h3 {
    margin: 1px 0 4px;
    color: #30353A;
    font-size: 13px;
    font-weight: 700;
}

.webpanda-paymentmethods-info p {
    margin: 0;
    color: #747B81;
    font-size: 11px;
    line-height: 1.65;
}

/* Responsive
   ============================================================ */

@media (max-width: 991px) {
    .webpanda-paymentmethods-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 34px;
    }
    .webpanda-paymentmethods-hero-action {
        width: 100%;
    }
    .webpanda-paymentmethods-hero-button {
        width: 100%;
    }
    .webpanda-paymentmethod-item {
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .webpanda-paymentmethod-actions {
        width: 100%;
        padding-left: 66px;
        justify-content: flex-start;
    }
}

@media (max-width: 767px) {
    .webpanda-paymentmethods-hero-inner {
        padding: 28px 24px;
    }
    .webpanda-paymentmethods-hero h1 {
        font-size: 28px;
    }
    .webpanda-paymentmethods-card-heading {
        padding: 25px 24px 20px;
    }
    .webpanda-paymentmethod-item {
        padding: 22px 24px;
    }
    .webpanda-paymentmethod-actions {
        padding-left: 0;
    }
    .webpanda-paymentmethod-action {
        width: 100%;
    }
    .webpanda-paymentmethods-empty {
        flex-direction: column;
        padding: 34px 24px;
    }
    .webpanda-paymentmethods-info {
        margin-bottom: 20px;
    }
}

/* ============================================================
   WebPanda — Manage Automatic Payment Method
   ============================================================ */

.webpanda-paymethod-manage {
    margin-bottom: 48px;
}

/* Hero
   ============================================================ */

.webpanda-paymethod-manage-hero {
    overflow: hidden;
    margin-bottom: 24px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 15% 25%, rgba(118, 200, 0, .14), transparent 28%),
        radial-gradient(circle at 90% 10%, rgba(118, 200, 0, .10), transparent 30%),
        linear-gradient(135deg, #111418 0%, #171d1a 100%);
    color: #fff;
}

.webpanda-paymethod-manage-hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    min-height: 220px;
    padding: 42px 46px;
}

.webpanda-paymethod-manage-hero-copy {
    max-width: 680px;
}

.webpanda-paymethod-manage-eyebrow,
.webpanda-paymethod-manage-section-eyebrow {
    display: block;
    margin-bottom: 9px;
    color: #76C800;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.4px;
    line-height: 1.4;
}

.webpanda-paymethod-manage-hero h1 {
    margin: 0 0 12px;
    color: #fff;
    font-size: 34px;
    font-weight: 700;
    line-height: 1.15;
}

.webpanda-paymethod-manage-hero p {
    margin: 0;
    color: rgba(255, 255, 255, .68);
    font-size: 15px;
    line-height: 1.7;
}

.webpanda-paymethod-manage-hero-action {
    flex: 0 0 auto;
}

.webpanda-paymethod-manage-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 9px;
    background: rgba(255, 255, 255, .06);
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    transition:
        border-color .2s ease,
        background .2s ease;
}

.webpanda-paymethod-manage-back:hover {
    border-color: rgba(118, 200, 0, .65);
    background: rgba(118, 200, 0, .10);
}

/* Main card
   ============================================================ */

.webpanda-paymethod-manage-card {
    overflow: hidden;
    border: 1px solid #E1E4E7;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(17, 20, 24, .04);
}

.webpanda-paymethod-manage-card-heading {
    padding: 30px 34px 25px;
    border-bottom: 1px solid #ECEEEF;
}

.webpanda-paymethod-manage-card-heading h2 {
    margin: 0 0 6px;
    color: #252A2F;
    font-size: 21px;
    font-weight: 700;
}

.webpanda-paymethod-manage-card-heading p {
    margin: 0;
    color: #8A9096;
    font-size: 13px;
    line-height: 1.6;
}

/* Sections
   ============================================================ */

.webpanda-paymethod-manage-section {
    padding: 30px 34px;
    border-bottom: 1px solid #ECEEEF;
}

.webpanda-paymethod-manage-section-title {
    display: flex;
    align-items: flex-start;
    gap: 13px;
    margin-bottom: 25px;
}

.webpanda-paymethod-manage-section-title > span {
    display: flex;
    flex: 0 0 34px;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 9px;
    background: #F1F9E4;
    color: #5D9800;
    font-size: 11px;
    font-weight: 700;
}

.webpanda-paymethod-manage-section-title h3 {
    margin: 0 0 3px;
    color: #30353A;
    font-size: 15px;
    font-weight: 700;
}

.webpanda-paymethod-manage-section-title p {
    margin: 0;
    color: #8A9096;
    font-size: 11px;
    line-height: 1.55;
}

/* Form fields
   ============================================================ */

.webpanda-paymethod-manage-field {
    align-items: flex-start;
    margin-bottom: 22px;
}

.webpanda-paymethod-manage-field:last-child {
    margin-bottom: 0;
}

.webpanda-paymethod-manage-field > label {
    padding-top: 10px;
    color: #555C62;
    font-size: 12px;
    font-weight: 600;
}

/*
 * Important:
 * Keep this as a normal block column.
 * Using flex + align-items:flex-start here caused the helper text
 * underneath fields to collapse into an unnecessarily narrow width.
 */
.webpanda-paymethod-manage-field > .col-md-8 {
    display: block;
}

.webpanda-paymethod-manage .form-control,
.webpanda-paymethod-manage .custom-select {
    min-height: 42px;
    border: 1px solid #D9DEE2;
    border-radius: 8px;
    background: #fff;
    color: #30353A;
    font-size: 13px;
    box-shadow: none;
}

.webpanda-paymethod-manage .form-control:focus,
.webpanda-paymethod-manage .custom-select:focus {
    border-color: #76C800;
    box-shadow: 0 0 0 3px rgba(118, 200, 0, .10);
}

.webpanda-paymethod-manage .form-control:disabled {
    border-color: #E0E4E7;
    background: #F2F4F5;
    color: #70777D;
    opacity: 1;
}

.webpanda-paymethod-manage .input-group-text {
    min-height: 42px;
    border-color: #D9DEE2;
    background: #F3F5F6;
    font-size: 12px;
}

/* Field wrappers
   ============================================================ */

.webpanda-paymethod-input-wrap {
    width: 100%;
}

.webpanda-paymethod-input-wrap-card {
    max-width: 355px;
}

.webpanda-paymethod-input-wrap-expiry {
    max-width: 120px;
}

/* Locked PayFast fields
   ============================================================ */

.webpanda-paymethod-static-field,
.webpanda-paymethod-manage .form-control[readonly] {
    border-color: #E0E4E7 !important;
    background: #F2F4F5 !important;
    color: #70777D !important;
    box-shadow: none !important;
    cursor: not-allowed;
}

/* Helper text underneath fields
   ============================================================ */

.webpanda-paymethod-field-help {
    display: block;
    width: 100%;
    max-width: none;
    margin-top: 6px;
    margin-bottom: 0;
    color: #9AA0A5;
    font-size: 10px;
    line-height: 1.5;
}

/* Error messages
   ============================================================ */

.webpanda-paymethod-manage .field-error-msg {
    display: none;
    margin-top: 6px;
    color: #C84646;
    font-size: 10px;
}

/* Payment-details spacing
   ============================================================ */

.fieldgroup-auxfields .webpanda-paymethod-manage-field {
    margin-bottom: 22px;
}

.cc-details .webpanda-paymethod-manage-field {
    margin-bottom: 22px;
}

.cc-details .webpanda-paymethod-manage-field:last-child {
    margin-bottom: 0;
}

/* Provider
   ============================================================ */

.webpanda-paymethod-provider-options {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.webpanda-paymethod-provider-option {
    display: flex !important;
    align-items: center;
    gap: 8px;
    margin: 0 !important;
    color: #30353A;
    font-size: 13px;
    font-weight: 500;
}

.webpanda-paymethod-provider-option span {
    line-height: 1.5;
}

/* Billing contact
   ============================================================ */

.webpanda-paymethod-billing-contacts {
    color: #4F565C;
    font-size: 13px;
    line-height: 1.55;
}

.webpanda-paymethod-add-address {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 17px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #DCE1E4;
    border-radius: 7px;
    background: #fff;
    color: #555D63 !important;
    font-size: 10px;
    font-weight: 700;
    text-decoration: none !important;
}

.webpanda-paymethod-add-address:hover {
    border-color: #76C800;
    color: #4E7D00 !important;
}

/* Loading / remote gateway
   ============================================================ */

.webpanda-paymethod-loading {
    padding: 30px;
    text-align: center;
    color: #777E84;
    font-size: 12px;
}

.webpanda-paymethod-loading i {
    margin-right: 7px;
    color: #76C800;
}

.webpanda-paymethod-remote-output {
    padding: 30px;
}

/* Actions
   ============================================================ */

.webpanda-paymethod-manage-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    padding: 24px 34px;
    background: #FAFBFB;
}

.webpanda-paymethod-manage-cancel,
.webpanda-paymethod-manage-save {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 42px;
    padding: 0 17px;
    border-radius: 8px;
    font-size: 11px;
    font-weight: 700;
    text-decoration: none !important;
}

.webpanda-paymethod-manage-cancel {
    border: 1px solid #D9DEE2;
    background: #fff;
    color: #60676D !important;
}

.webpanda-paymethod-manage-cancel:hover {
    border-color: #BFC5C9;
    color: #30353A !important;
}

.webpanda-paymethod-manage-save {
    border: 1px solid #76C800;
    background: #76C800;
    color: #111418;
    cursor: pointer;
}

.webpanda-paymethod-manage-save:hover {
    border-color: #8DD200;
    background: #8DD200;
}

/* Security note
   ============================================================ */

.webpanda-paymethod-security-note {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-top: 20px;
    padding: 20px 22px;
    border: 1px solid #DFE6D6;
    border-radius: 13px;
    background: #F8FBF4;
}

.webpanda-paymethod-security-icon {
    display: flex;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 9px;
    background: #EAF5D7;
    color: #76C800;
    font-size: 14px;
}

.webpanda-paymethod-security-note h3 {
    margin: 1px 0 4px;
    color: #30353A;
    font-size: 13px;
    font-weight: 700;
}

.webpanda-paymethod-security-note p {
    margin: 0;
    color: #747B81;
    font-size: 11px;
    line-height: 1.65;
}

.webpanda-paymethod-security-note strong {
    color: #30353A;
}

/* Billing-address modal
   ============================================================ */

.webpanda-paymethod-modal {
    overflow: hidden;
    border: 0;
    border-radius: 14px;
    box-shadow: 0 20px 60px rgba(17, 20, 24, .20);
}

.webpanda-paymethod-modal .modal-header {
    align-items: flex-start;
    padding: 24px 26px 20px;
    border-bottom: 1px solid #ECEEEF;
}

.webpanda-paymethod-modal .modal-title {
    margin: 0;
    color: #252A2F;
    font-size: 19px;
    font-weight: 700;
}

.webpanda-paymethod-modal .modal-body {
    padding: 25px 26px;
}

.webpanda-paymethod-modal .modal-body label {
    color: #555C62;
    font-size: 11px;
    font-weight: 600;
}

.webpanda-paymethod-modal .form-control,
.webpanda-paymethod-modal .custom-select {
    min-height: 40px;
    border: 1px solid #D9DEE2;
    border-radius: 7px;
    box-shadow: none;
}

.webpanda-paymethod-modal .form-control:focus,
.webpanda-paymethod-modal .custom-select:focus {
    border-color: #76C800;
    box-shadow: 0 0 0 3px rgba(118, 200, 0, .10);
}

.webpanda-paymethod-modal .modal-footer {
    padding: 18px 26px;
    border-top: 1px solid #ECEEEF;
    background: #FAFBFB;
}

/* Responsive
   ============================================================ */

@media (max-width: 991px) {
    .webpanda-paymethod-manage-hero-inner {
        align-items: flex-start;
        flex-direction: column;
        min-height: 0;
        padding: 34px;
    }
    .webpanda-paymethod-manage-hero-action {
        width: 100%;
    }
    .webpanda-paymethod-manage-back {
        width: 100%;
    }
}

@media (max-width: 767px) {
    .webpanda-paymethod-manage-hero-inner {
        padding: 28px 24px;
    }
    .webpanda-paymethod-manage-hero h1 {
        font-size: 28px;
    }
    .webpanda-paymethod-manage-card-heading,
    .webpanda-paymethod-manage-section {
        padding-left: 24px;
        padding-right: 24px;
    }
    .webpanda-paymethod-manage-field > label {
        margin-bottom: 7px;
        padding-top: 0;
    }
    .webpanda-paymethod-manage-actions {
        flex-direction: column-reverse;
        padding: 20px 24px;
    }
    .webpanda-paymethod-manage-cancel,
    .webpanda-paymethod-manage-save {
        width: 100%;
    }
}

/* ============================================================
   WebPanda — iCheck accent
   ============================================================ */

.webpanda-paymethod-manage .iradio_square-blue.checked,
.webpanda-paymethod-manage .icheckbox_square-blue.checked {
    filter: hue-rotate(235deg) saturate(1.45) brightness(1.05);
}

.webpanda-paymethod-modal .modal-footer .btn-primary {
    border-color: #76C800;
    background: #76C800;
    color: #111418;
    font-weight: 700;
}

.webpanda-paymethod-modal .modal-footer .btn-primary:hover,
.webpanda-paymethod-modal .modal-footer .btn-primary:focus {
    border-color: #8DD200;
    background: #8DD200;
    color: #111418;
}
