:root {
    --gp-accent: #0f8f7b;
    /* main accent */
    --gp-dark: #0b1b2a;
    --gp-muted: #6b7b86;
    --gp-bg: #ffffff;
    --gp-radius: 10px;
    --gp-shadow: 0 6px 20px rgba(11, 27, 42, 0.06);
}

/* Card layout */
.gp-card {
    display: flex;
    gap: 32px;
    align-items: flex-start;
    background: var(--gp-bg);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
    padding: 28px;
    margin: 24px 0;
    border: 1px solid rgba(11, 27, 42, 0.04);
    flex-wrap: wrap;
}

/* left content */
.gp-card__left {
    flex: 1 1 480px;
    min-width: 260px;
}

.gp-title {
    font-family: inherit;
    font-size: 32px;
    margin: 0 0 12px;
    color: var(--gp-accent);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

/* product content */
.gp-content {
    color: var(--gp-dark);
    margin-bottom: 18px;
    line-height: 1.6;
}

/* meta list */
.gp-meta {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}

.gp-meta li {
    color: var(--gp-muted);
    font-size: 14px;
}

/* price */
.gp-price {
    color: var(--gp-dark);
    font-weight: 600;
    margin-left: 6px;
}

/* right box */
.gp-card__right {
    width: 320px;
    min-width: 250px;
    flex: 0 0 320px;
}

/* order box */
.gp-orderbox {
    background: linear-gradient(180deg, rgba(15, 143, 123, 0.03), rgba(15, 143, 123, 0.01));
    padding: 18px;
    border-radius: 8px;
    text-align: left;
    border: 1px solid rgba(15, 143, 123, 0.07);
}

.gp-label {
    display: block;
    font-size: 13px;
    color: var(--gp-muted);
    margin-bottom: 8px;
}

.gp-input {
    width: 100%;
    padding: 12px 14px;
    font-size: 16px;
    border-radius: 6px;
    border: 1px solid #e6e9eb;
    margin-bottom: 12px;
    box-sizing: border-box;
}

/* Button */
.gp-button {
    display: block;
    width: 100%;
    background: var(--gp-dark);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    position: relative;
    overflow: hidden;
}

.gp-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(11, 27, 42, 0.08);
}

.gp-button__text {
    display: block;
}

.gp-button__sub {
    display: block;
    font-size: 11px;
    opacity: 0.9;
    margin-top: 6px;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.85);
}

/* small note */
.gp-small {
    margin-top: 10px;
    color: var(--gp-muted);
    font-size: 13px;
}

/* Comment section */
.gp-comment {
    background: rgba(15, 143, 123, 0.03);
    border-left: 3px solid var(--gp-accent);
    padding: 14px 16px;
    margin: 18px 0;
    border-radius: 4px;
    color: var(--gp-dark);
    font-size: 14px;
    line-height: 1.6;
}

.gp-comment p {
    margin: 0;
}

/* Amazon link styling */
.gp-amazon-link {
    color: var(--gp-accent);
    text-decoration: none;
    font-weight: 600;
}

.gp-amazon-link:hover {
    text-decoration: underline;
}

/* Progress bar */
.gp-progress {
    margin: 24px 0;
    padding: 16px;
    background: rgba(15, 143, 123, 0.04);
    border-radius: 8px;
    border: 1px solid rgba(15, 143, 123, 0.1);
}

.gp-progress__label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--gp-dark);
}

.gp-progress__percentage {
    color: var(--gp-accent);
    font-size: 16px;
}

.gp-progress__bar {
    height: 12px;
    background: rgba(11, 27, 42, 0.08);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 6px;
}

.gp-progress__fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gp-accent), #12b59a);
    border-radius: 6px;
    transition: width 0.3s ease;
}

.gp-progress__stats {
    font-size: 13px;
    color: var(--gp-muted);
    text-align: center;
}

/* Payment info section */
.gp-payment-info {
    margin: 24px 0;
    padding: 20px;
    background: linear-gradient(135deg, rgba(15, 143, 123, 0.08), rgba(15, 143, 123, 0.03));
    border-radius: 10px;
    border: 2px solid rgba(15, 143, 123, 0.15);
}

.gp-payment-info__title {
    font-size: 18px;
    font-weight: 700;
    color: var(--gp-accent);
    margin: 0 0 12px 0;
}

.gp-payment-info__text {
    font-size: 14px;
    line-height: 1.7;
    color: var(--gp-dark);
    margin: 0;
}

.gp-payment-info__text strong {
    color: var(--gp-accent);
}

/* notices */
.gp-notice {
    padding: 14px;
    border-radius: 8px;
    margin: 10px 0;
}

.gp-notice--error {
    background: #fff6f6;
    border: 1px solid #ffd6d6;
    color: #9a1f1f;
}

/* responsive */
@media (max-width:880px) {
    .gp-card {
        padding: 18px;
        gap: 16px;
    }

    .gp-card__right {
        flex-basis: 100%;
        width: 100%;
        min-width: unset;
    }

    .gp-card__left {
        flex-basis: 100%;
    }

    .gp-title {
        font-size: 24px;
    }
}

/* Order confirmation styles */
.gp-confirmation {
    max-width: 800px;
    margin: 0 auto;
    padding: 40px;
    padding-top: 140px;
}

.gp-confirmation-box {
    background: var(--gp-bg);
    border-radius: var(--gp-radius);
    box-shadow: var(--gp-shadow);
    padding: 40px;
    text-align: center;
    border: 1px solid rgba(11, 27, 42, 0.04);
}

.gp-confirmation-box h1 {
    font-size: 28px;
    margin-bottom: 20px;
    color: var(--gp-accent);
}

.gp-confirmation-box--success h1 {
    color: #0f8f7b;
}

.gp-confirmation-box--cancel h1 {
    color: var(--gp-muted);
}

.gp-confirmation-box p {
    font-size: 16px;
    line-height: 1.6;
    margin-bottom: 20px;
    color: var(--gp-dark);
}

.gp-session-id {
    font-size: 12px;
    color: var(--gp-muted);
    text-overflow: ellipsis;
    overflow: hidden;
}

.gp-confirmation-box p:nth-last-of-type(2) {
   margin-bottom: 33px; 
}

.button:hover {
    background-color: var(--ast-global-color-1);
    border-color: var(--ast-global-color-1);
}

/* Billing modal styles */
.gp-billing-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(11, 27, 42, 0.75);
}

.gp-billing-modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gp-billing-modal__content {
    background-color: var(--gp-bg);
    border-radius: var(--gp-radius);
    box-shadow: 0 10px 40px rgba(11, 27, 42, 0.2);
    padding: 32px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.gp-billing-modal__close {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    font-weight: bold;
    color: var(--gp-muted);
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
    line-height: 1;
}

.gp-billing-modal__close:hover {
    color: var(--gp-dark);
}

.gp-billing-modal__title {
    font-size: 24px;
    margin: 0 0 8px;
    color: var(--gp-accent);
    letter-spacing: 0.04em;
}

.gp-billing-modal__subtitle {
    font-size: 14px;
    color: var(--gp-muted);
    margin-bottom: 24px;
}

.gp-billing-form__section {
    margin-bottom: 24px;
}

.gp-billing-form__section-title {
    font-size: 16px;
    font-weight: 600;
    color: var(--gp-dark);
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(11, 27, 42, 0.08);
}

.gp-billing-form__field {
    margin-bottom: 16px;
}

.gp-billing-form__field label {
    display: block;
    font-size: 13px;
    color: var(--gp-dark);
    margin-bottom: 6px;
    font-weight: 500;
}

.gp-billing-form__field label .required {
    color: #d63638;
    margin-left: 2px;
}

.gp-billing-form__field input {
    width: 100%;
    padding: 12px 14px;
    font-size: 15px;
    border-radius: 6px;
    border: 1px solid #e6e9eb;
    box-sizing: border-box;
    transition: border-color 0.2s;
}

.gp-billing-form__field input:focus {
    outline: none;
    border-color: var(--gp-accent);
}

.gp-billing-form__field.error input {
    border-color: #d63638;
}

.gp-billing-form__field-error {
    display: none;
    color: #d63638;
    font-size: 12px;
    margin-top: 4px;
}

.gp-billing-form__field.error .gp-billing-form__field-error {
    display: block;
}

.gp-billing-form__row {
    display: flex;
    gap: 12px;
}

.gp-billing-form__row .gp-billing-form__field {
    flex: 1;
}

.gp-billing-form__submit {
    display: block;
    width: 100%;
    background: var(--gp-accent);
    color: #fff;
    border: none;
    padding: 14px 16px;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
    transition: all 0.2s;
}

.gp-billing-form__submit:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(15, 143, 123, 0.3);
}

.gp-billing-form__submit:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.gp-billing-form__error {
    display: none;
    padding: 12px 16px;
    background-color: #fff6f6;
    border: 1px solid #ffd6d6;
    border-radius: 6px;
    color: #9a1f1f;
    font-size: 14px;
    margin-bottom: 20px;
}

/* Delivery address toggle section */
.gp-billing-form__section--delivery-toggle {
    margin-bottom: 16px;
}

.gp-billing-form__checkbox-field {
    display: flex;
    align-items: center;
    gap: 10px;
}

.gp-billing-form__checkbox-field input[type="checkbox"] {
    width: auto;
    margin: 0;
    cursor: pointer;
}

.gp-billing-form__checkbox-field label {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    color: var(--gp-dark);
    cursor: pointer;
}

/* Delivery section styling */
.gp-delivery-section {
    background: rgba(15, 143, 123, 0.02);
    border: 1px solid rgba(15, 143, 123, 0.1);
    border-radius: 8px;
    padding: 20px;
    margin-top: 16px;
}

.gp-delivery-section .gp-billing-form__section-title {
    color: var(--gp-accent);
}

/* Payment method selection styles */
.gp-payment-method-section {
    margin-bottom: 24px;
}

.gp-payment-method-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gp-payment-method-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: #f9fafb;
    border: 2px solid #e6e9eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.gp-payment-method-option:hover {
    border-color: var(--gp-accent);
    background: rgba(15, 143, 123, 0.03);
}

.gp-payment-method-option input[type="radio"] {
    width: 20px;
    height: 20px;
    margin: 2px 0 0 0;
    cursor: pointer;
    accent-color: var(--gp-accent);
}

.gp-payment-method-option input[type="radio"]:checked + .gp-payment-method-option__content {
    color: var(--gp-dark);
}

.gp-payment-method-option:has(input[type="radio"]:checked) {
    border-color: var(--gp-accent);
    background: rgba(15, 143, 123, 0.05);
}

.gp-payment-method-option__content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.gp-payment-method-option__title {
    font-weight: 600;
    font-size: 15px;
    color: var(--gp-dark);
}

.gp-payment-method-option__desc {
    font-size: 13px;
    color: var(--gp-muted);
}

/* Price summary box */
.gp-price-summary {
    margin-top: 16px;
    padding: 16px;
    background: linear-gradient(135deg, rgba(15, 143, 123, 0.08), rgba(15, 143, 123, 0.03));
    border: 1px solid rgba(15, 143, 123, 0.2);
    border-radius: 8px;
}

.gp-price-summary__row {
    display: flex;
    justify-content: space-between;
    padding: 6px 0;
    font-size: 14px;
    color: var(--gp-dark);
}

.gp-price-summary__surcharge {
    color: var(--gp-accent);
    padding-bottom: 10px;
}

.gp-price-summary__total {
    font-weight: 700;
    font-size: 16px;
    padding-top: 10px;
    border-top: 1px solid rgba(15, 143, 123, 0.15);
}

.gp-price-summary__total span:last-child {
    color: var(--gp-accent);
}

@media (max-width: 600px) {
    .gp-billing-modal__content {
        padding: 24px 20px;
        width: 95%;
    }
    
    .gp-billing-form__row {
        flex-direction: column;
        gap: 0;
    }
}