﻿:root {
    --primary-color: #0F233C;
    --secondary-color: #378CC8;
    --accent-red: #E6325A;
    --accent-green: #41AF4B;
    --bg-color: #f4f6f9;
    --accent-black: #000;
}

@font-face {
    font-family: 'aradaheadline-regular';
    src: url('/_content/Arada_SecurePay.UI/fonts/aradaheadline-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'arada-regular';
    src: url('/_content/Arada_SecurePay.UI/fonts/arada-regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

html {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
}

body {
    height: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'arada-regular','Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    color: var(--primary-color);
}

.container {
    width: min(100% - 32px, 700px);
    height: auto;
    max-height: 100vh;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 0;
    display: flex;
    flex-direction: column;
}

    .container.gx-0 {
        margin-top: 0 !important;
    }

.content {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: clamp(10px, 2vh, 30px) clamp(10px, 2vw, 24px);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.header {
    background-color: var(--accent-black);
    padding: clamp(12px, 2vh, 24px);
    flex-shrink: 0;
    text-align: center;
}

    .header img {
        height: clamp(22px, 3.5vh, 32px);
    }

.title {
    font-size: clamp(14px, 3vh, 24px);
    margin-top: clamp(8px, 1.5vh, 16px);
    margin-bottom: clamp(8px, 1.5vh, 24px);
    text-align: center;
    color: var(--primary-color);
    word-break: break-word;
}

.details-table {
    width: 100%;
    max-width: 100%;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0 clamp(4px, 1vh, 12px);
    margin-bottom: clamp(8px, 1.5vh, 30px);
    background-color: var(--bg-color);
    border-radius: 8px;
    padding: clamp(6px, 1vh, 12px);
}

    .details-table td {
        padding: clamp(6px, 1.2vh, 14px) clamp(8px, 1.5vw, 16px);
        background-color: transparent;
        border-radius: 6px;
        vertical-align: middle;
        overflow-wrap: anywhere;
        word-break: break-word;
    }

        .details-table td:first-child {
            color: var(--primary-color);
            font-weight: normal;
            width: 42%;
        }

        .details-table td:nth-child(2) {
            background-color: #fff;
            color: var(--primary-color);
            font-weight: 500;
            word-break: break-all;
        }

        .details-table td:nth-child(3) {
            background-color: transparent !important;
            color: var(--primary-color);
            font-weight: normal;
        }

        .details-table td:last-child {
            background-color: #fff;
            color: var(--primary-color);
            font-weight: 500;
        }

    .details-table input[type="text"],
    .details-table input[type="number"],
    .details-table input[type="email"],
    .details-table select,
    .details-table textarea {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        padding: 10px;
        border: 1px solid #ccc;
        border-radius: 6px;
        font-size: clamp(11px, 1.5vh, 14px);
    }

.payment-info {
    font-size: 14px;
    margin-bottom: 12px;
    overflow-wrap: anywhere;
}

.cards {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    justify-content: center;
    margin-bottom: clamp(8px, 1.5vh, 16px);
}

    .cards img {
        height: clamp(20px, 3vh, 28px);
        width: auto;
    }

.pay-btn {
    width: 100%;
    padding: clamp(10px, 1.5vh, 16px);
    font-size: clamp(13px, 1.8vh, 16px);
    background: #1d428A;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
    cursor: pointer;
    margin-bottom: clamp(8px, 1.5vh, 20px);
}

    .pay-btn:hover {
        background: #091829;
    }

.pay-btn-apple {
    width: 100%;
    padding: clamp(10px, 1.5vh, 16px);
    font-size: clamp(13px, 1.8vh, 16px);
    background: #000 !important;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    transition: background 0.3s ease;
    cursor: pointer;
    margin-top: 10px;
    display: grid;
}

    .pay-btn-apple:hover {
        background: #091829;
    }

.apple-pay-btn {
    background-color: transparent !important;
}

td.paypartial {
    background-color: transparent;
}

/* Tablet */
@media screen and (max-width: 768px) {
    .container,
    .container-err {
        width: calc(100% - 24px);
        height: auto;
        max-height: 100vh;
        border-radius: 10px;
    }

    .header {
        padding: 18px;
    }

        .header img {
            height: 28px;
        }

    .content {
        padding: 18px 16px;
        overflow-y: auto;
        justify-content: flex-start;
    }

    .title {
        font-size: clamp(12px, 2vh, 20px);
        margin-bottom: clamp(6px, 1vh, 18px);
    }

    .details-table {
        border-spacing: 0 8px;
        padding: 10px;
    }

        .details-table td {
            font-size: clamp(10px, 1vh, 14px);
            padding: 10px 12px;
            vertical-align: middle;
        }

            .details-table td:first-child {
                width: 42%;
            }

            .details-table td:nth-child(2) {
                word-break: break-all;
            }
}

/* Mobile */
@media screen and (max-width: 480px) {
    html, body {
        height: auto;
        overflow: auto;
        align-items: flex-start;
    }

    .container,
    .container-err {
        width: 100%;
        height: auto;
        max-height: none;
        border-radius: 0;
        box-shadow: none;
    }

    .content {
        overflow-y: visible;
        padding: 16px 12px;
        justify-content: flex-start;
    }

    .title {
        font-size: clamp(10px, 1.5vh, 18px);
    }

    .details-table {
        width: 100%;
        padding: 8px;
        border-spacing: 0 6px;
        background: var(--bg-color);
        border-radius: 8px;
    }

        .details-table td {
            padding: 8px 10px;
            font-size: clamp(11px, 1.2vh, 13px);
            vertical-align: middle;
        }

            .details-table td:first-child {
                width: 42%;
                white-space: normal;
                word-break: break-word;
            }

            .details-table td:nth-child(2) {
                font-size: clamp(10px, 1.1vh, 13px);
                word-break: break-all;
            }

    .pay-btn,
    .pay-btn-apple {
        font-size: clamp(10px, 1.3vh, 14px);
        padding: 14px;
    }
}
