.frp-nav {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px;
    margin: 0 0 28px;
    border: 1px solid #e7e7e7;
    border-radius: 14px;
    background: #fff;
}

.frp-nav a {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 16px;
    border-radius: 10px;
    color: #222;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    text-decoration: none;
    transition: background-color .18s ease, color .18s ease;
}

.frp-nav a:hover,
.frp-nav a.is-active {
    background: #111;
    color: #fff;
}

.frp-nav .frp-signout {
    margin-left: auto;
}

.frp-panel {
    width: 100%;
}

.frp-panel h1 {
    margin: 4px 0 8px;
}

.frp-eyebrow {
    display: block;
    margin-bottom: 4px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    opacity: .55;
}

.frp-intro,
.frp-heading-row p {
    margin: 0 0 28px;
    opacity: .72;
}

.frp-table-wrap {
    overflow-x: auto;
    border: 1px solid #e8e8e8;
    border-radius: 14px;
    background: #fff;
}

.frp-table {
    width: 100%;
    border-collapse: collapse;
}

.frp-table th,
.frp-table td {
    padding: 16px 18px;
    border-bottom: 1px solid #eee;
    text-align: left;
    vertical-align: top;
}

.frp-table th {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    background: #fafafa;
}

.frp-table tbody tr:last-child td {
    border-bottom: 0;
}

.frp-order-items {
    margin-top: 5px;
    font-size: 13px;
    opacity: .65;
}

.frp-status {
    display: inline-flex;
    padding: 5px 9px;
    border-radius: 999px;
    background: #f1f1f1;
    font-size: 12px;
    font-weight: 700;
}

.frp-form {
    max-width: 760px;
}

.frp-form label {
    display: grid;
    gap: 7px;
    margin-bottom: 18px;
    font-weight: 700;
}

.frp-form input {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    background: #fff;
    color: inherit;
    font: inherit;
}

.frp-form input:focus {
    border-color: #777;
    outline: 2px solid transparent;
}

.frp-grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.frp-password-box {
    padding: 20px;
    margin: 8px 0 20px;
    border-radius: 12px;
    background: #f7f7f7;
}

.frp-password-box h3 {
    margin: 0 0 4px;
}

.frp-password-box p {
    margin: 0 0 18px;
    font-size: 14px;
    opacity: .7;
}

.frp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 18px;
    border: 0;
    border-radius: 9px;
    background: #111;
    color: #fff !important;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}

.frp-notice,
.frp-empty,
.frp-login-required {
    padding: 18px 20px;
    border-radius: 12px;
    background: #f5f5f5;
}

.frp-notice-success {
    margin-bottom: 18px;
    border-left: 4px solid #1f8f4e;
}

.frp-notice-error {
    margin-bottom: 18px;
    border-left: 4px solid #b42318;
}

/* The Giveaway shortcode can output its own WooCommerce-like navigation.
   Hide only navigation nested INSIDE this plugin's ticket content. */
.frp-giveaway-dashboard .woocommerce-MyAccount-navigation,
.frp-giveaway-dashboard nav.woocommerce-MyAccount-navigation {
    display: none !important;
}

.frp-giveaway-dashboard .woocommerce-MyAccount-content {
    float: none !important;
    width: 100% !important;
}

@media (max-width: 700px) {
    .frp-nav {
        align-items: stretch;
    }

    .frp-nav a,
    .frp-nav .frp-signout {
        flex: 1 1 calc(50% - 8px);
        justify-content: center;
        margin-left: 0;
    }

    .frp-grid-2 {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .frp-table th,
    .frp-table td {
        padding: 13px 14px;
    }
}

/* v1.2: Giveaway dashboard cleanup.
   Fire Raffle Portal supplies the page title/navigation, so nested Giveaway
   dashboard titles/navigation are intentionally suppressed. */
.frp-giveaway-dashboard > h1:first-child,
.frp-giveaway-dashboard > h2:first-child,
.frp-giveaway-dashboard .lty-dashboard-title,
.frp-giveaway-dashboard .lty-myaccount-title {
    display: none !important;
}

/* v1.3: Ensure portal navigation remains readable against theme/Breakdance hover rules. */
.frp-nav a,
.frp-nav a:visited {
    color: #222 !important;
}

.frp-nav a:hover,
.frp-nav a:focus-visible,
.frp-nav a.is-active,
.frp-nav a.is-active:visited {
    background-color: #111 !important;
    color: #fff !important;
}

/* Billing address form: normalize WooCommerce field markup to match portal forms. */
.frp-address-form .form-row {
    width: 100%;
    margin: 0 0 18px;
    padding: 0;
}

.frp-address-form .form-row label {
    display: block;
    margin: 0 0 7px;
    font-weight: 700;
}

.frp-address-form .woocommerce-input-wrapper {
    display: block;
    width: 100%;
}

.frp-address-form input,
.frp-address-form select {
    width: 100%;
    min-height: 48px;
    padding: 10px 13px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
    background: #fff;
    color: #222;
    font: inherit;
}

.frp-address-form select {
    cursor: pointer;
}

.frp-address-form .select2-container {
    width: 100% !important;
}

.frp-address-form .select2-selection--single {
    min-height: 48px;
    border: 1px solid #d7d7d7;
    border-radius: 9px;
}

.frp-address-form .select2-selection__rendered {
    line-height: 46px !important;
    padding-left: 13px !important;
}

.frp-address-form .select2-selection__arrow {
    height: 46px !important;
}
