@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce button.button,
    .kof-checkout-wrap .woocommerce input.button {
        font-size: 15px !important;
        padding: 10px 0 !important;
        min-height: 38px !important;
    }
}
@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce form label,
    .kof-checkout-wrap .woocommerce form .input-text,
    .kof-checkout-wrap .woocommerce form select,
    .kof-checkout-wrap .woocommerce form textarea {
        font-size: 14px !important;
    }
}
@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce form .input-text,
    .kof-checkout-wrap .woocommerce form select,
    .kof-checkout-wrap .woocommerce form textarea {
        line-height: 1.3 !important;
    }
}
@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce form .input-text,
    .kof-checkout-wrap .woocommerce form select,
    .kof-checkout-wrap .woocommerce form textarea {
        min-height: 32px;
        padding-top: 6px;
        padding-bottom: 6px;
        font-size: 15px;
    }
    .kof-checkout-wrap .woocommerce form textarea {
        min-height: 72px;
    }
}
/* Tvåkolumnig WooCommerce checkout på /tack-kit */
.kof-checkout-wrap .woocommerce-billing-fields__field-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 24px;
}
@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce-billing-fields__field-wrapper {
        grid-template-columns: 1fr;
        gap: 12px;
    }
}
.kof-field.kof-terms {
    margin-top: 10px !important;
}
.kof-field.kof-terms label {
    display: flex !important;
    align-items: center !important;
    gap: 3px !important;
    font-weight: 600 !important;
    color: var(--gray) !important;
    cursor: pointer !important;
}
.kof-field.kof-terms input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 8px 0 0 !important;
    accent-color: var(--red) !important;
}
.kof-field.kof-terms a {
    color: var(--red) !important;
    text-decoration: underline !important;
    font-weight: 600 !important;
}
:root {
    --gray: #3E4148;
    --red: #E84F23;
    --red-rgb: 232, 79, 35;
    --green: #93B53D;
    --blue: #A0BADD;
    --copper: #C18C44;
    --form-border: rgba(62, 65, 72, 0.32);
}

.kof-wrap {
    margin: 0;
    color: var(--gray);
    font-family: "Trenda", sans-serif;
    font-size: 16px;
    line-height: 1.7;
}

.kof-wrap h1,
.kof-wrap h2,
.kof-wrap h3,
.kof-wrap h4,
.kof-wrap h5,
.kof-wrap h6 {
    font-family: "Trenda", sans-serif;
    font-weight: 600;
    line-height: 1.2;
}

.kof-wrap .added_to_cart.wc-forward {
    display: none;
}

.kof-hidden-field {
    display: none !important;
}

/* Alltid dolda kassan-fält – oavsett felstatus eller JS-uppdatering */
#billing_country_field,
#billing_address_2_field {
    display: none !important;
}

@media (max-width: 478px) {
    .kof-wrap {
        line-height: 1.4;
    }
}

.kof-message,
.kof-error {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
}

.kof-message {
    background: #fff;
    border: 1px solid var(--blue);
}

.kof-closed-card {
    width: 100%;
    max-width: 100%;
    margin: 28px auto;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: #fff;
    box-shadow: none;
    text-align: center;
}

.kof-closed-wrapper {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
}

.kof-closed-card--profile {
    border: 0 !important;
}

.kof-sales-link-panel {
    margin-top: 14px;
    padding: 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(232, 79, 35, 0.09) 0%, rgba(193, 140, 68, 0.08) 100%);
    box-shadow: 0 8px 18px rgba(62, 65, 72, 0.08);
}

.kof-sales-billing-tip {
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(var(--red-rgb), 0.28);
    background: rgba(232, 79, 35, 0.06);
}

.kof-sales-billing-tip-title {
    display: block;
    margin: 0 0 4px;
    color: var(--gray);
    font-weight: 700;
}

.kof-sales-billing-tip-text {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
    line-height: 1.4;
}

.kof-sales-link-panel .kof-closed-text {
    margin-bottom: 8px;
    font-weight: 700;
}

.kof-sales-link-panel .kof-closed-text a {
    display: inline-block;
    margin-top: 6px;
    color: var(--red);
    font-weight: 700;
    word-break: break-word;
}

.kof-sales-link-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.kof-copy-link-button {
    flex: 0 0 auto;
    min-width: 92px;
    padding: 10px 14px;
    border: 1px solid rgba(62, 65, 72, 0.18);
    border-radius: 999px;
    background: #fff;
    color: var(--gray);
    font-family: "Trenda", sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.kof-copy-link-button:hover,
.kof-copy-link-button:focus {
    border-color: var(--red);
    color: var(--red);
    outline: none;
}

.kof-copy-link-button.is-copied {
    background: var(--red);
    border-color: var(--red);
    color: #fff;
}

.kof-copy-link-button.is-error {
    background: var(--gray);
    border-color: var(--gray);
    color: #fff;
}

@media (max-width: 640px) {
    .kof-sales-link-row {
        flex-direction: column;
        align-items: stretch;
    }

    .kof-copy-link-button {
        width: 100%;
    }
}

.kof-sales-link-info {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    border: 0;
    background: rgba(255, 255, 255, 0.88);
    color: var(--gray);
    font-weight: 600;
}

.kof-closed-title {
    margin: 0 0 8px;
    color: var(--gray);
    font-size: 24px;
    line-height: 1.25;
}

.kof-closed-text {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
}

.kof-closed-next {
    margin: 14px auto 8px;
    display: inline-block;
    padding: 8px 14px;
    border-radius: 999px;
    border: 0;
    background: none;
    color: #000;
    font-weight: 700;
}

.kof-closed-footnote {
    margin: 0;
    color: var(--gray);
    font-size: 14px;
}

.kof-closed-notice {
    margin: 16px auto 0;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid var(--blue);
    background: #fff;
    color: var(--gray);
    font-weight: 600;
    max-width: 560px;
}

.kof-closed-waitlist {
    margin: 18px auto 0;
    max-width: 560px;
    padding-top: 16px;
    border-top: 1px solid var(--gray);
}

.kof-closed-waitlist-label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    color: var(--gray);
}

.kof-closed-waitlist-row {
    display: flex;
    flex-direction: column;
    gap: 10px;
    justify-content: center;
}

.kof-closed-waitlist-row input[type="email"] {
    min-height: 42px;
    border-radius: 10px;
    border: 1px solid var(--gray);
    padding: 0 12px;
}

.kof-closed-waitlist-row button {
    min-height: 42px;
    border: 0;
    border-radius: 999px;
    padding: 0 18px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

.kof-closed-waitlist-row button:hover {
    background: var(--gray);
}

.kof-error {
    background: #fff;
    border: 1px solid var(--red);
}

.kof-form {
    background: transparent;
    border: 0;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
}

.kof-section-head {
    margin: 18px 0 10px;
}

.kof-section-head h3 {
    margin: 0 0 4px;
    font-size: 22px;
}

.kof-section-head p {
    margin: 0;
    color: var(--gray);
}

.kof-contact-card {
    background: hsl(0, 0%, 97%);
    border-radius: 12px;
    padding: 16px;
    margin-top: 8px;
}

.kof-contact-card .kof-section-head {
    margin-top: 0;
}

.kof-products {
    width: 100%;
    margin: 10px 0 24px;
    background: #fff;
    border: 1px solid var(--form-border);
    border-radius: 12px;
    overflow: hidden;
}

.kof-product-row {
    display: flex;
    align-items: center;
    gap: 12px;
    border-bottom: 1px solid var(--form-border);
    padding: 10px;
}

.kof-product-row:last-child {
    border-bottom: 0;
}

.kof-product-col {
    min-width: 0;
}

.kof-read-more-toggle {
    margin-top: 4px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #9aa0a6;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
}

.kof-read-more-arrow {
    display: inline-block;
    transition: transform 0.16s ease;
}

.kof-read-more-toggle[aria-expanded="true"] .kof-read-more-arrow {
    transform: rotate(180deg);
}

.kof-short-desc[hidden] {
    display: none !important;
}

.kof-product-image-col {
    width: 84px;
    flex: 0 0 84px;
}

.kof-product-info-col {
    flex: 1 1 auto;
}

.kof-product-price-col {
    flex: 0 0 180px;
    font-weight: 600;
}

.kof-product-qty-col {
    flex: 0 0 150px;
    display: flex;
    justify-content: flex-end;
}

.kof-product-image,
.kof-product-image-col img {
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--form-border);
}

.kof-short-desc p {
    margin: 6px 0 0;
    font-size: 13px;
}

.kof-qty-control {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--form-border);
    border-radius: 999px;
    padding: 4px;
}

.kof-qty-btn {
    width: 30px;
    height: 30px;
    border: 0;
    border-radius: 999px;
    background: var(--red);
    color: #fff;
    font-size: 18px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    vertical-align: middle;
    cursor: pointer;
}

.kof-qty-btn:hover {
    background: var(--gray);
}

.kof-qty-value {
    min-width: 20px;
    text-align: center;
    font-weight: 700;
    color: var(--gray);
}

.kof-summary {
    border: 1px solid var(--form-border);
    background: #fff;
    border-radius: 12px;
    padding: 16px;
    margin: 0 0 24px;
}

.kof-summary h3 {
    margin: 0 0 10px;
    font-size: 20px;
}

.kof-summary-items {
    list-style: none;
    margin: 0;
    padding: 0;
    display: none;
}

.kof-summary-items li {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 6px 0;
    border-bottom: 1px solid var(--form-border);
}

.kof-summary-rows {
    margin-top: 10px;
}

.kof-summary-row {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    padding: 4px 0;
}

.kof-info-drawer-card {
    margin-top: -12px;
    background: #f4faf4;
    border: 1px solid #b8ddb8;
    border-top: 3px solid #5a9e5a;
}

.kof-info-drawer-intro {
    margin: 0;
    color: var(--gray);
    line-height: 1.5;
}

.kof-info-drawer-toggle {
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #4a8a4a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}

.kof-info-drawer-content {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #c8e6c8;
    color: var(--gray);
}

.kof-info-drawer-content[hidden] {
    display: none !important;
}

.kof-info-drawer-content img {
    display: block;
    float: none;
    max-width: 100%;
    height: auto;
    margin: 16px 0;
    border-radius: 8px;
}

.kof-info-drawer-content h4 {
    font-size: 1.9rem;
    margin-top: 20px;
    margin-bottom: 4px;
    color: #3d7a3d;
}

.kof-info-drawer-content ul {
    list-style: none;
    margin-top: 4px;
    margin-bottom: 12px;
    padding-left: 0;
}

.kof-info-drawer-content ul li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 4px;
}

.kof-info-drawer-content ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #5a9e5a;
    font-weight: 700;
}

.kof-happy-note {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid var(--red);
    color: var(--gray);
    padding: 10px 12px;
    border-radius: 10px;
    font-weight: 500;
}

.kof-happy-note strong {
    margin-right: 4px;
}

.kof-happy-emoji {
    font-size: 18px;
}

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

.kof-field {
    margin: 0;
}

.kof-field label {
    display: grid;
    gap: 6px;
    font-weight: 600;
    color: var(--gray);
}

.kof-field label span {
    line-height: 1.2;
}

.kof-fields input,
.kof-fields textarea {
    width: 100%;
    min-height: 38px;
    border: 1px solid var(--form-border);
    border-radius: 6px;
    padding: 8px 10px;
    box-sizing: border-box;
}

.kof-fields input:focus,
.kof-fields textarea:focus {
    border-color: var(--copper);
    outline: 2px solid rgba(193, 140, 68, 0.18);
    outline-offset: 0;
}

.kof-fields textarea {
    min-height: 110px;
}

.kof-full {
    grid-column: 1 / -1;
}

.kof-submit {
    min-height: 48px;
    padding: 0 28px;
    border-radius: 999px;
    border: 0;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    font-size: 16px;
}

.kof-submit:hover {
    background: var(--gray);
}

.kof-submit-wrap {
    margin-top: 16px;
    display: flex;
    justify-content: center;
}

.kof-subscriptions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
    margin: 12px 0 20px;
}

.kof-subscription-item {
    border: 1px solid #ddd;
    padding: 12px;
    border-radius: 4px;
}

.kof-thanks-hero {
    margin: 0 0 16px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(var(--red-rgb), 0.3);
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff 0%, rgba(var(--red-rgb), 0.04) 55%, #ffffff 100%);
    box-shadow: 0 12px 28px rgba(var(--red-rgb), 0.08);
    padding: 20px;
    text-align: center;
}

.kof-thanks-hero::before,
.kof-thanks-hero::after {
    content: "";
    position: absolute;
    border-radius: 999px;
    pointer-events: none;
}

.kof-thanks-hero::before {
    width: 180px;
    height: 180px;
    right: -70px;
    bottom: -90px;
    background: radial-gradient(circle, rgba(var(--red-rgb), 0.10) 0%, rgba(var(--red-rgb), 0) 72%);
}

.kof-thanks-hero::after {
    width: 140px;
    height: 140px;
    left: -60px;
    top: -70px;
    background: radial-gradient(circle, rgba(var(--red-rgb), 0.08) 0%, rgba(var(--red-rgb), 0) 72%);
}

.kof-thanks-emoji {
    font-size: 28px;
    line-height: 1;
    margin-bottom: 8px;
    position: relative;
    z-index: 1;
}

.kof-thanks-hero h2 {
    margin: 0 0 8px;
    color: var(--gray);
    font-size: 30px;
    position: relative;
    z-index: 1;
}

.kof-thanks-hero p {
    margin: 0;
    color: var(--gray);
    font-size: 16px;
    font-weight: 600;
    position: relative;
    z-index: 1;
}

.kof-thanks-mini {
    margin: 0;
    color: var(--red);
    font-weight: 700;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--red-rgb), 0.1);
}

.kof-thanks-intro {
    margin: 16px auto;
    max-width: 560px;
    font-size: 14px;
    color: var(--gray);
    line-height: 1.6;
    text-align: center;
}

.kof-subscriptions-list {
    margin-top: 0;
}

.kof-subscriptions-list .kof-product-row {
    background: #ffffff;
}

.kof-subscription-add {
    min-height: 40px;
    border-radius: 999px;
    border-color: var(--red);
    background: var(--red);
    color: #fff;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 14px;
    text-decoration: none;
}

.kof-subscription-add:hover {
    background: var(--gray);
    color: #fff;
    text-decoration: none;
}

.kof-subscription-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    width: 100%;
}

.kof-subscription-qty-control {
    margin-left: auto;
}

.kof-subscription-actions .is-hidden {
    display: none !important;
}

.kof-checkout-wrap {
    margin-top: 16px;
}

.kof-checkout-wrap .woocommerce {
    background: hsl(0, 0%, 97%);
    border: 0;
    border-radius: 12px;
    padding: 16px;
}

.kof-checkout-wrap .woocommerce .woocommerce-info,
.kof-checkout-wrap .woocommerce .woocommerce-error,
.kof-checkout-wrap .woocommerce .woocommerce-message {
    border-radius: 10px;
}

.kof-checkout-wrap .woocommerce .col2-set,
.kof-checkout-wrap .woocommerce #customer_details {
    width: 100% !important;
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: none !important;
}

.kof-checkout-wrap form.woocommerce-checkout.bricks-default-checkout {
    display: block !important;
    grid-template-columns: 1fr !important;
    gap: 0 !important;
}

.kof-checkout-wrap form.woocommerce-checkout.bricks-default-checkout > * {
    width: 100% !important;
    max-width: 100% !important;
    grid-column: 1 / -1 !important;
}

.kof-checkout-wrap .woocommerce .col2-set .col-1,
.kof-checkout-wrap .woocommerce .col2-set .col-2,
.kof-checkout-wrap .woocommerce-page .col2-set .col-1,
.kof-checkout-wrap .woocommerce-page .col2-set .col-2 {
    float: none !important;
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}
@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce .col2-set,
    .kof-checkout-wrap .woocommerce #customer_details {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
}

.kof-checkout-wrap .woocommerce-checkout #customer_details {
    display: block !important;
}

.kof-checkout-wrap .woocommerce-checkout #customer_details > div,
.kof-checkout-wrap .woocommerce-checkout .col2-set > div {
    width: 100% !important;
    max-width: 100% !important;
    flex: 0 0 100% !important;
}

.kof-checkout-wrap .woocommerce form .form-row-first,
.kof-checkout-wrap .woocommerce form .form-row-last,
.kof-checkout-wrap .woocommerce-page form .form-row-first,
.kof-checkout-wrap .woocommerce-page form .form-row-last {
    float: none !important;
    width: 100% !important;
}

.kof-checkout-wrap .woocommerce form .form-row {
    margin: 0;
}

.kof-checkout-wrap .woocommerce form .form-row label {
    font-weight: 600;
    color: var(--gray);
}

.kof-checkout-wrap .woocommerce form .input-text,
.kof-checkout-wrap .woocommerce form select,
.kof-checkout-wrap .woocommerce form textarea {
    min-height: 38px;
    border: 1px solid var(--form-border);
    border-radius: 6px;
    padding: 6px 10px;
    color: var(--gray);
}

.kof-checkout-wrap .woocommerce form textarea {
    min-height: 96px;
}

.kof-checkout-wrap .woocommerce form .input-text:focus,
.kof-checkout-wrap .woocommerce form select:focus,
.kof-checkout-wrap .woocommerce form textarea:focus {
    border-color: var(--copper);
    outline: 2px solid rgba(193, 140, 68, 0.18);
    outline-offset: 0;
}

.kof-checkout-wrap .woocommerce-checkout h3 {
    margin: 0 0 8px;
    font-size: 20px;
}

.kof-checkout-wrap .woocommerce-checkout-review-order {
    margin-top: 16px;
}

.kof-checkout-spec-boxes {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.kof-checkout-spec-box {
    background: #fff;
    border: 0;
    border-radius: 10px;
    padding: 12px;
}

.kof-checkout-spec-title {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.25;
}

.kof-checkout-spec-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.kof-checkout-spec-list li {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    padding: 7px 0;
    border-bottom: 1px solid var(--form-border);
}

.kof-checkout-spec-list li:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.kof-checkout-spec-list li span {
    color: var(--gray);
}

.kof-checkout-spec-list li strong {
    text-align: right;
    color: var(--gray);
    font-weight: 700;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table.kof-checkout-spec-table-hidden {
    display: none;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table {
    border: 1px solid var(--form-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table th,
.kof-checkout-wrap .woocommerce-checkout-review-order-table td {
    padding: 10px 12px;
    vertical-align: top;
    border-bottom: 1px solid var(--form-border);
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table tr:last-child th,
.kof-checkout-wrap .woocommerce-checkout-review-order-table tr:last-child td {
    border-bottom: 0;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table th {
    color: var(--gray);
    font-weight: 600;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table td {
    text-align: right;
    font-weight: 500;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table .cart_item td {
    font-weight: 700;
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table .recurring-total th,
.kof-checkout-wrap .woocommerce-checkout-review-order-table .order-total th {
    font-weight: 700;
}

.kof-checkout-wrap .woocommerce-shipping-totals td,
.kof-checkout-wrap .woocommerce-shipping-methods,
.kof-checkout-wrap .shipping td {
    font-size: 14px;
}

.kof-checkout-wrap .woocommerce-checkout #payment {
    border-radius: 12px;
    border: 1px solid var(--form-border);
    background: #fff;
    padding: 12px;
}

.kof-checkout-wrap .woocommerce-checkout #payment > ul.payment_methods {
    margin: 0;
    padding: 0;
    border: 0;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li {
    list-style: none;
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 8px;
    align-items: start;
    border: 1px solid var(--form-border);
    border-radius: 10px;
    background: #fff;
    margin: 0 0 8px;
    padding: 10px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method[style*="display:block"],
.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li.wc_payment_method[style*="display: block"] {
    display: grid !important;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li:last-child {
    margin-bottom: 0;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li > input.input-radio {
    grid-column: 1;
    grid-row: 1;
    margin: 0 !important;
    padding: 0 !important;
    align-self: center;
    justify-self: center;
    flex: 0 0 18px;
    aspect-ratio: 1 / 1;
    width: 18px;
    height: 18px;
    min-width: 18px;
    min-height: 18px;
    max-width: 18px;
    max-height: 18px;
    border: 2px solid #b9bec4;
    border-radius: 50%;
    background: #fff;
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
    display: inline-grid;
    place-content: center;
    box-sizing: border-box;
    transform: none;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li > input.input-radio::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--red);
    transform: scale(0);
    transition: transform 0.15s ease;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li > input.input-radio:checked {
    border-color: var(--red);
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li > input.input-radio:checked::before {
    transform: scale(1);
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li > label {
    grid-column: 2;
    grid-row: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    width: auto;
    margin: 0 !important;
    margin-bottom: 0 !important;
    padding: 0 !important;
    font-weight: 600;
    line-height: 1.25;
    color: var(--gray);
    cursor: pointer;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li > label img {
    max-height: 18px;
    width: auto;
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li input.input-radio:checked + label {
    color: var(--gray);
}

.kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li:has(> input.input-radio:checked) {
    border-color: #d4d7da;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(70, 78, 85, 0.08);
}

.kof-checkout-wrap .woocommerce-checkout #payment .payment_box {
    grid-column: 1 / -1;
    width: 100%;
    margin: 0;
    padding: 0;
    border-radius: 0;
    border: 0;
    background: #fff;
    color: var(--gray);
}

.kof-checkout-wrap .woocommerce-checkout #payment .payment_box::before {
    display: none;
}

.kof-checkout-wrap .woocommerce-checkout #payment .wc-upe-form,
.kof-checkout-wrap .woocommerce-checkout #payment .wc-stripe-upe-element {
    margin-top: 4px;
}

.kof-checkout-wrap .woocommerce-checkout #payment .woocommerce-terms-and-conditions-wrapper {
    margin-top: 8px;
}

.kof-checkout-wrap .woocommerce-checkout #payment .woocommerce-privacy-policy-text {
    font-size: 14px;
    line-height: 1.45;
    color: var(--gray);
}

.kof-checkout-wrap .woocommerce-checkout #payment .woocommerce-privacy-policy-text p {
    margin: 0;
}

.kof-checkout-wrap .woocommerce-checkout #payment .form-row.validate-required {
    margin-top: 8px;
    margin-bottom: 12px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.kof-checkout-wrap .woocommerce-checkout #payment .form-row.validate-required label {
    display: inline;
    margin: 0;
    font-weight: 500;
}

.kof-checkout-wrap .woocommerce-checkout #payment .form-row.validate-required input.input-checkbox {
    margin-top: 0;
}

.kof-checkout-wrap .woocommerce-checkout #payment .place-order {
    margin-top: 0;
    padding-top: 0;
}

.kof-checkout-wrap .woocommerce-checkout #payment #place_order {
    width: 100%;
    min-height: 44px;
    font-size: 16px;
    letter-spacing: 0.01em;
}

@media (max-width: 700px) {
    .kof-checkout-wrap .woocommerce-checkout #payment {
        padding: 12px;
    }

    .kof-checkout-wrap .woocommerce-checkout #payment ul.payment_methods li {
        padding: 10px;
    }

    .kof-checkout-wrap .woocommerce-checkout #payment .payment_box {
        padding: 0;
    }
}

.kof-checkout-wrap .woocommerce-checkout-review-order-table {
    display: none !important;
}

.kof-checkout-wrap .woocommerce #place_order,
.kof-checkout-wrap .woocommerce a.button,
.kof-checkout-wrap .woocommerce button.button,
.kof-checkout-wrap .woocommerce input.button {
    min-height: 40px;
    border-radius: 999px;
    border: 0;
    background: var(--red);
    color: #fff;
    font-weight: 700;
}

.kof-checkout-wrap .woocommerce #place_order:hover,
.kof-checkout-wrap .woocommerce a.button:hover,
.kof-checkout-wrap .woocommerce button.button:hover,
.kof-checkout-wrap .woocommerce input.button:hover {
    background: var(--gray);
    color: #fff;
}

.kof-submit-wrap .kof-submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.kof-submit-wrap .kof-submit:hover,
.kof-submit-wrap .kof-submit:focus {
    text-decoration: none;
}

body.woocommerce-order-received .woocommerce-order {
    color: var(--gray);
    font-family: "Trenda", sans-serif;
}

body.woocommerce-order-received .woocommerce-notice--success {
    background: #fff;
    border: 1px solid var(--green);
    border-radius: 12px;
    padding: 12px 14px;
    font-weight: 600;
    color: var(--gray);
}

body.woocommerce-order-received .woocommerce-order-overview {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 14px 0;
    padding: 0;
    list-style: none;
}

body.woocommerce-order-received .woocommerce-order-overview li {
    margin: 0;
    padding: 10px 12px;
    border: 1px solid var(--form-border);
    border-radius: 10px;
    background: #fff;
    font-size: 14px;
}

body.woocommerce-order-received .woocommerce-order-overview li strong {
    display: block;
    margin-top: 4px;
    font-size: 16px;
    font-weight: 700;
    color: var(--gray);
}

body.woocommerce-order-received .woocommerce-order > p,
body.woocommerce-order-received .woocommerce-order > section,
body.woocommerce-order-received .woocommerce-order .woocommerce-customer-details {
    background: #fff;
    border: 1px solid var(--form-border);
    border-radius: 12px;
    padding: 14px;
    margin: 0 0 14px;
}

body.woocommerce-order-received .woocommerce-order-details__title,
body.woocommerce-order-received .woocommerce-column__title,
body.woocommerce-order-received .woocommerce-order h2 {
    margin: 0 0 10px;
    font-size: 22px;
    line-height: 1.2;
}

body.woocommerce-order-received .woocommerce-table,
body.woocommerce-order-received .shop_table {
    border: 1px solid var(--form-border);
    border-radius: 10px;
    overflow: hidden;
    background: #fff;
    margin: 0;
}

body.woocommerce-order-received .woocommerce-table th,
body.woocommerce-order-received .woocommerce-table td,
body.woocommerce-order-received .shop_table th,
body.woocommerce-order-received .shop_table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--form-border);
    color: var(--gray);
}

body.woocommerce-order-received .woocommerce-table tr:last-child th,
body.woocommerce-order-received .woocommerce-table tr:last-child td,
body.woocommerce-order-received .shop_table tr:last-child th,
body.woocommerce-order-received .shop_table tr:last-child td {
    border-bottom: 0;
}

body.woocommerce-order-received .woocommerce-columns.woocommerce-columns--2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

body.woocommerce-order-received .woocommerce-column {
    float: none !important;
    width: 100% !important;
    margin: 0;
    border: 1px solid var(--form-border);
    border-radius: 10px;
    padding: 12px;
    background: hsl(0, 0%, 97%);
}

body.woocommerce-order-received .woocommerce-button.button,
body.woocommerce-order-received .woocommerce a.button {
    min-height: 38px;
    border-radius: 999px;
    border: 0;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
}

body.woocommerce-order-received .woocommerce-button.button:hover,
body.woocommerce-order-received .woocommerce a.button:hover {
    background: var(--gray);
    color: #fff;
}

@media (max-width: 680px) {
    .kof-closed-card {
        padding: 18px 16px;
        border-radius: 12px;
    }

    .kof-closed-title {
        font-size: 18px;
    }

    .kof-closed-text,
    .kof-sales-link-info,
    .kof-closed-notice,
    .kof-closed-waitlist-label {
        font-size: 14px;
    }

    .kof-closed-footnote {
        font-size: 13px;
    }

    .kof-closed-next {
        display: block;
        border-radius: 10px;
        font-size: 13px;
    }

    .kof-closed-waitlist-row {
        flex-direction: column;
    }

    .kof-closed-waitlist-row button {
        width: 100%;
    }

    .kof-form {
        overflow-x: auto;
        padding: 0;
    }

    .kof-contact-card {
        border-radius: 12px;
        padding: 12px;
    }

    .kof-section-head h3 {
        font-size: 18px;
    }

    .kof-section-head p {
        font-size: 14px;
    }

    .kof-products {
        min-width: 0;
    }

    .kof-products:not(.kof-subscriptions-list) .kof-product-row {
        display: grid;
        grid-template-columns: 56px 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 8px;
        align-items: center;
    }

    .kof-products:not(.kof-subscriptions-list) .kof-product-image-col {
        grid-column: 1;
        grid-row: 1;
        width: 56px;
        flex: unset;
    }

    .kof-products:not(.kof-subscriptions-list) .kof-product-image-col img,
    .kof-products:not(.kof-subscriptions-list) .kof-product-image {
        width: 56px;
        height: 56px;
    }

    .kof-products:not(.kof-subscriptions-list) .kof-product-info-col {
        grid-column: 2 / 4;
        grid-row: 1;
        flex: unset;
        min-width: 0;
    }

    .kof-products:not(.kof-subscriptions-list) .kof-product-price-col {
        grid-column: 1 / 3;
        grid-row: 2;
        flex: unset;
        min-width: 0;
        font-size: 13px;
    }

    .kof-products:not(.kof-subscriptions-list) .kof-product-qty-col {
        grid-column: 3;
        grid-row: 2;
        flex: unset;
        margin-left: auto;
        justify-content: flex-end;
    }

    .kof-fields {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .kof-product-info-col strong {
        display: block;
        font-size: 14px;
        line-height: 1.3;
    }

    .kof-short-desc p {
        font-size: 12px;
    }

    .kof-summary h3 {
        font-size: 18px;
    }

    .kof-summary-items li,
    .kof-summary-row,
    .kof-field label,
    .kof-fields input,
    .kof-fields textarea {
        font-size: 14px;
    }

    .kof-field label {
        gap: 4px;
    }

    .kof-fields input {
        min-height: 34px;
        padding: 5px 10px;
        line-height: 1.2;
    }

    .kof-fields textarea {
        min-height: 82px;
        padding: 6px 10px;
        line-height: 1.3;
    }

    .kof-happy-note {
        font-size: 13px;
        padding: 8px 10px;
        gap: 8px;
    }

    .kof-happy-emoji {
        font-size: 16px;
    }

    .kof-submit {
        font-size: 15px;
        min-height: 44px;
    }

    /* Subscriptions list (/tack) — two-row compact layout on mobile */
    .kof-subscriptions-list {
        min-width: 0;
    }

    .kof-subscriptions-list .kof-product-row {
        display: grid;
        grid-template-columns: 48px 1fr auto;
        grid-template-rows: auto auto;
        gap: 6px 8px;
    }

    .kof-subscriptions-list .kof-product-image-col {
        grid-column: 1;
        grid-row: 1;
        flex: unset;
        width: 48px;
    }

    .kof-subscriptions-list .kof-product-image-col img,
    .kof-subscriptions-list .kof-product-image {
        width: 48px;
        height: 48px;
    }

    .kof-subscriptions-list .kof-product-info-col {
        grid-column: 2 / 4;
        grid-row: 1;
        align-self: center;
        min-width: 0;
    }

    /* Row 2: price left, button right */
    .kof-subscriptions-list .kof-product-price-col {
        grid-column: 1 / 3;
        grid-row: 2;
        font-size: 14px;
        padding: 2px 4px 0;
        color: #94a3b8;
        font-weight: 500;
    }

    /* Row 2: button right */
    .kof-subscriptions-list .kof-product-qty-col {
        grid-column: 3;
        grid-row: 2;
        display: flex;
        justify-content: flex-end;
    }

    .kof-subscriptions-list .kof-subscription-add {
        font-size: 14px;
        padding: 0 14px;
        min-height: 38px;
        width: auto;
        justify-content: center;
    }

    .kof-thanks-hero {
        padding: 14px 14px;
    }

    .kof-thanks-emoji {
        font-size: 20px;
    }

    .kof-thanks-hero h2 {
        font-size: 20px;
    }

    .kof-thanks-hero p {
        font-size: 13px;
    }

    .kof-thanks-mini,
    .kof-thanks-intro {
        font-size: 13px;
    }

    .kof-checkout-wrap .woocommerce {
        padding: 12px;
    }

    .kof-checkout-wrap .woocommerce-checkout h3 {
        font-size: 18px;
    }

    .kof-checkout-wrap .woocommerce #place_order {
        width: 100%;
    }

    .kof-submit-wrap {
        display: flex;
    }

    .kof-submit-wrap .kof-submit {
        width: 100%;
        justify-content: center;
    }

    body.woocommerce-order-received .woocommerce-order-overview {
        grid-template-columns: 1fr;
    }

    body.woocommerce-order-received .woocommerce-columns.woocommerce-columns--2 {
        grid-template-columns: 1fr;
    }

    body.woocommerce-order-received .woocommerce-order-details__title,
    body.woocommerce-order-received .woocommerce-column__title,
    body.woocommerce-order-received .woocommerce-order h2 {
        font-size: 20px;
    }
}

/* ===== Registrera + Mitt konto ===== */
body.woocommerce-account .woocommerce,
body.page-template-default .woocommerce-account .woocommerce,
body[class*="registrera"] .entry-content {
    color: var(--gray);
}

body.woocommerce-account .woocommerce::after,
body.woocommerce-account .woocommerce::before {
    content: "";
    display: table;
}

body.woocommerce-account .woocommerce::after {
    clear: both;
}

body.woocommerce-account .woocommerce-MyAccount-navigation {
    width: 100%;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul {
    margin: 0;
    padding: 0;
    list-style: none;
    border: 1px solid var(--blue);
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0;
    border-bottom: 1px solid rgba(160, 186, 221, 0.45);
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li:last-child {
    border-bottom: 0;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    padding: 11px 14px;
    color: var(--gray);
    font-weight: 600;
    text-decoration: none;
}

body.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
body.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(160, 186, 221, 0.22);
    color: var(--gray);
}

body.woocommerce-account .woocommerce-MyAccount-content {
    border: 1px solid var(--blue);
    border-radius: 14px;
    background: #fff;
    padding: 20px;
}

body.woocommerce-account .woocommerce-MyAccount-content h2,
body.woocommerce-account .woocommerce-MyAccount-content h3,
body.woocommerce-account .woocommerce-MyAccount-content h4 {
    color: var(--gray);
}

body.woocommerce-account .woocommerce-MyAccount-content .shop_table,
body.woocommerce-account .woocommerce-MyAccount-content .shop_table th,
body.woocommerce-account .woocommerce-MyAccount-content .shop_table td {
    border-color: rgba(160, 186, 221, 0.55);
}

body.woocommerce-account .woocommerce-form-login,
body.woocommerce-account form.woocommerce-form-login,
body.woocommerce-account form.login,
body.woocommerce-account form.register,
#afwc_registration_form {
    margin: 0 auto;
    border: 1px solid var(--blue);
    border-radius: 14px;
    background: #fff;
    padding: 20px;
    box-shadow: 0 10px 24px rgba(62, 65, 72, 0.08);
}

body.woocommerce-account .woocommerce-form-login .form-row,
body.woocommerce-account form.login .form-row,
body.woocommerce-account form.register .form-row,
#afwc_registration_form .afwc_reg_field_wrapper {
    margin-bottom: 12px;
}

body.woocommerce-account .woocommerce-form-login label,
body.woocommerce-account form.login label,
body.woocommerce-account form.register label,
#afwc_registration_form label {
    display: block;
    margin-bottom: 6px;
    color: var(--gray);
    font-weight: 600;
}

body.woocommerce-account .woocommerce-form-login input:not([type="checkbox"]),
body.woocommerce-account .woocommerce-form-login select,
body.woocommerce-account .woocommerce-form-login textarea,
body.woocommerce-account form.login input:not([type="checkbox"]),
body.woocommerce-account form.login select,
body.woocommerce-account form.login textarea,
body.woocommerce-account form.register input:not([type="checkbox"]),
body.woocommerce-account form.register select,
body.woocommerce-account form.register textarea,
#afwc_registration_form .afwc_reg_form_field,
#afwc_registration_form input:not([type="checkbox"]),
#afwc_registration_form select,
#afwc_registration_form textarea {
    width: 100%;
    min-height: 40px;
    border: 1px solid var(--form-border);
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--gray);
    background: #fff;
}

body.woocommerce-account .woocommerce-form-login input:focus,
body.woocommerce-account .woocommerce-form-login select:focus,
body.woocommerce-account .woocommerce-form-login textarea:focus,
body.woocommerce-account form.login input:focus,
body.woocommerce-account form.login select:focus,
body.woocommerce-account form.login textarea:focus,
body.woocommerce-account form.register input:focus,
body.woocommerce-account form.register select:focus,
body.woocommerce-account form.register textarea:focus,
#afwc_registration_form .afwc_reg_form_field:focus,
#afwc_registration_form input:focus,
#afwc_registration_form select:focus,
#afwc_registration_form textarea:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 2px rgba(160, 186, 221, 0.22);
}

body.woocommerce-account .woocommerce-form-login button,
body.woocommerce-account .woocommerce-form-login .button,
body.woocommerce-account form.login button,
body.woocommerce-account form.login .button,
body.woocommerce-account form.register button,
body.woocommerce-account form.register .button,
#afwc_registration_form button,
#afwc_registration_form .button,
#afwc_registration_form_submit {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.woocommerce-account .woocommerce-form-login button:hover,
body.woocommerce-account .woocommerce-form-login .button:hover,
body.woocommerce-account form.login button:hover,
body.woocommerce-account form.login .button:hover,
body.woocommerce-account form.register button:hover,
body.woocommerce-account form.register .button:hover,
#afwc_registration_form button:hover,
#afwc_registration_form .button:hover,
#afwc_registration_form_submit:hover {
    background: var(--gray);
}

body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-error,
body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-message,
body.woocommerce-account .woocommerce-notices-wrapper .woocommerce-info,
#afwc_registration_form .afwc_registration_error {
    margin: 0 0 14px;
    border: 1px solid var(--blue);
    border-radius: 10px;
    background: #fff;
    color: var(--gray);
}

@media (max-width: 900px) {
    body.woocommerce-account .woocommerce-MyAccount-navigation,
    body.woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    body.woocommerce-account .woocommerce-MyAccount-content {
        margin-top: 12px;
    }
}

/* ===== Migrerad konto/AFWC-styling (utan blå borders) ===== */

/* Reset av WooCommerce My Account standardlayout */
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    float: none;
    width: auto;
}

.afwc-affiliate-details-card-wrapper .afwc-affiliate-details-card {
    background: #3e4149 !important;
    border-radius: 0.5em !important;
    border: 0 !important;
}

/* Modern layout */
.woocommerce-account {
    background: hsl(0, 0%, 97%);
}

.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content {
    background: #fff;
    border-radius: 0.75em;
    border: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation {
    padding: 16px;
    width: 16%;
    float: left;
    align-self: flex-start;
}

.woocommerce-account .woocommerce-MyAccount-content {
    padding: 24px 28px;
    float: right;
    align-self: flex-start;
    width: 100%;
    margin: 1em 0 0;
}

/* Navigation */
.woocommerce-account .woocommerce-MyAccount-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li {
    margin: 0 0 6px;
    padding: 0;
    border: 0 !important;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a {
    display: block;
    text-decoration: none;
    padding: 10px 14px;
    border-radius: 0.75em;
    color: var(--gray);
    font-weight: 600;
    line-height: 1.3;
    background: transparent;
    transition: background 0.2s ease, color 0.2s ease;
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover {
    background: rgba(62, 65, 72, 0.08);
    color: var(--red);
}

.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a {
    background: rgba(232, 79, 35, 0.12);
    color: var(--red);
}

/* Innehåll */
.woocommerce-account .woocommerce-MyAccount-content p:first-child {
    margin-top: 0;
}

/* Affiliate profile card */
.woocommerce-account .afwc-affiliate-details-card-wrapper {
    margin-bottom: 24px;
}

.woocommerce-account .afwc-affiliate-details-card {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px;
    background: #3e4149;
    border: 0 !important;
    border-radius: 0.75em;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.05);
}

.woocommerce-account .afwc-avatar-wrapper {
    flex: 0 0 75px;
}

.woocommerce-account .afwc-avatar-img {
    display: block;
    width: 75px;
    height: 75px;
    border-radius: 999px;
    object-fit: cover;
    border: 0 !important;
    box-shadow: 0 6px 18px rgba(2, 6, 23, 0.1);
}

.woocommerce-account .afwc-details {
    flex: 1 1 auto;
    min-width: 0;
}

.woocommerce-account .afwc-display-name {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.15;
    font-weight: 600 !important;
    color: #fff !important;
    letter-spacing: -0.02em;
}

.woocommerce-account .afwc-signup-date-wrapper,
.woocommerce-account .afwc-referral-url-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 2px;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
    align-items: center;
}

.woocommerce-account .afwc-detail-title {
    color: #fff;
}

.woocommerce-account .afwc-affiliate-ref-url-label {
    display: inline-block;
    padding: 5px 10px;
    background: #ffffff;
    border-radius: 10px;
    color: #3e4149;
    font-size: 12px;
    line-height: 1.4;
    word-break: break-all;
    cursor: pointer;
    border: 0 !important;
}

/* Tabs */
.woocommerce-account .nav-tab-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 24px;
    padding: 0;
    border: 0;
    background: transparent;
}

.woocommerce-account .nav-tab-wrapper .nav-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 10px 16px;
    border: 0 !important;
    border-radius: 0;
    background: #ffffff;
    color: #334155;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: none;
}

.woocommerce-account .nav-tab-wrapper .nav-tab:hover {
    background: #f8fafc;
    color: var(--red);
}

.woocommerce-account .nav-tab-wrapper .nav-tab.nav-tab-active {
    background: var(--red);
    color: #ffffff;
}

/* Top filters / date range */
.woocommerce-account #afwc_top_row_container {
    margin-bottom: 24px;
    padding: 18px 20px;
    background: #ffffff;
    border: 0 !important;
    border-radius: 0.75em;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}

.woocommerce-account #afwc_date_range_container {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85em;
    border: 0 !important;
}

.woocommerce-account #afwc_date_range_container input[type="date"] {
    min-height: 20px;
    padding: 10px 14px;
    background: #ffffff;
    color: #0f172a;
    border: 0 !important;
    border-radius: 0.75em;
    line-height: 1.3;
    box-shadow: 0 2px 10px rgba(2, 6, 23, 0.06);
}

.woocommerce-account #afwc_date_range_container input[type="date"]:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(232, 79, 35, 0.16);
}

.woocommerce-account #afwc-smart-dates-dropdown-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 14px;
    background: #f8fafc;
    border: 0 !important;
    border-radius: 0.75em;
    cursor: pointer;
    color: #334155;
    transition: all 0.2s ease;
}

.woocommerce-account #afwc-smart-dates-dropdown-wrapper:hover {
    background: #ffffff;
    color: var(--red);
}

.woocommerce-account #afwc-smart-dates-dropdown-list {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 20;
    min-width: 220px;
    margin: 0;
    padding: 8px;
    list-style: none;
    background: #ffffff;
    border: 0 !important;
    border-radius: 14px;
    box-shadow: 0 20px 50px rgba(2, 6, 23, 0.12);
}

.woocommerce-account #afwc-smart-dates-dropdown-list li span {
    display: block;
    padding: 10px 12px;
    border-radius: 10px;
    color: #334155;
    font-size: 14px;
    line-height: 1.3;
}

.woocommerce-account #afwc-smart-dates-dropdown-list li:hover span {
    background: #f8fafc;
    color: var(--red);
}

/* KPI cards */
.woocommerce-account #afwc_kpi_section_wrapper {
    display: grid;
    gap: 16px;
    margin-bottom: 28px;
}

.woocommerce-account .afwc-kpi-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
}

.woocommerce-account .afwc-kpi-box {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 120px;
    padding: 22px 20px;
    background: #ffffff;
    border: 0 !important;
    border-radius: 0.75em;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}

.woocommerce-account .afwc-kpi-number {
    margin: 0 0 8px !important;
    color: #0f172a !important;
    font-size: 32px !important;
    font-weight: 600 !important;
    line-height: 1.1;
    letter-spacing: -0.03em;
}

.woocommerce-account .afwc-kpi-title {
    margin: 0;
    color: #64748b;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.woocommerce-account .afwc-kpi-separator {
    display: none;
}

/* Report sections */
.woocommerce-account .afwc-visits-section,
.woocommerce-account .afwc-referrals-section,
.woocommerce-account .afwc-products-section,
.woocommerce-account .afwc-payouts-section,
.woocommerce-account .afwc-tab-content,
.woocommerce-account .afwc-profile-section,
.woocommerce-account .afwc-resources-section,
.woocommerce-account .afwc-multi-tier-section {
    margin-bottom: 24px;
    padding: 22px;
    background: #ffffff;
    border: 0 !important;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(2, 6, 23, 0.04);
}

.woocommerce-account .afwc-table-header-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 0;
}

.woocommerce-account .afwc-table-header {
    color: #0f172a;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.woocommerce-account .afwc-view-all-reports a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    background: #f8fafc;
    border: 0 !important;
    border-radius: 10px;
    color: var(--red);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    transition: all 0.2s ease;
}

.woocommerce-account .afwc-view-all-reports a:hover {
    background: rgba(232, 79, 35, 0.1);
}

/* Tables */
.woocommerce-account table.afwc-reports {
    width: 100%;
    margin: 0;
    border: 0 !important;
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    overflow: hidden;
    background: #ffffff;
}

.woocommerce-account table.afwc-reports thead th {
    padding: 14px 16px;
    background: #f8fafc;
    border: 0 !important;
    color: #0f172a;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
    text-align: left;
    vertical-align: middle;
}

.woocommerce-account table.afwc-reports tbody td {
    padding: 16px;
    border: 0 !important;
    color: #334155;
    font-size: 14px;
    line-height: 1.5;
    vertical-align: top;
}

.woocommerce-account table.afwc-reports a {
    color: var(--red);
    text-decoration: none;
}

.woocommerce-account table.afwc-reports a:hover {
    text-decoration: underline;
}

/* Login + registrering utan blå borders */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account form.woocommerce-form-login,
.woocommerce-account form.login,
.woocommerce-account form.register,
#afwc_registration_form,
.afwc_reg_form_wrapper {
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(62, 65, 72, 0.08);
}

.afwc_reg_form_wrapper {
    box-shadow: none !important;
    border: 0 !important;
    background: transparent !important;
    padding: 0 !important;
}

.woocommerce-account .woocommerce-form-login .input-text,
.afwc_reg_form_field[type="text"],
.afwc_reg_form_field[type="email"],
.afwc_reg_form_field[type="password"],
textarea.afwc_reg_form_field,
select.afwc_reg_form_field {
    border: 0 !important;
    box-shadow: inset 0 0 0 1px rgba(62, 65, 72, 0.22);
}

.woocommerce-account .woocommerce-form-login .input-text:focus,
.afwc_reg_form_field:focus {
    border: 0 !important;
    box-shadow: 0 0 0 3px rgba(232, 79, 35, 0.14), inset 0 0 0 1px rgba(62, 65, 72, 0.22);
}

/* Login + glömt lösenord: samma kortbredd och stil */
.woocommerce-account .woocommerce-form-login,
.woocommerce-account form.woocommerce-form-login,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password,
body.woocommerce-lost-password .woocommerce form.lost_reset_password {
    width: 100%;
    max-width: 440px;
    margin: 0 auto !important;
    padding: 22px;
    border-radius: 14px;
    background: #fff;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password .form-row,
body.woocommerce-lost-password .woocommerce form.lost_reset_password .form-row {
    margin-bottom: 12px;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password label,
body.woocommerce-lost-password .woocommerce form.lost_reset_password label {
    display: block;
    margin-bottom: 6px;
    color: var(--gray);
    font-weight: 600;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password input,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password select,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password textarea,
body.woocommerce-lost-password .woocommerce form.lost_reset_password input,
body.woocommerce-lost-password .woocommerce form.lost_reset_password select,
body.woocommerce-lost-password .woocommerce form.lost_reset_password textarea {
    width: 100%;
    min-height: 40px;
    border: 0 !important;
    border-radius: 10px;
    padding: 8px 12px;
    color: var(--gray);
    background: #fff;
    box-shadow: inset 0 0 0 1px rgba(62, 65, 72, 0.22);
}

body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password input:focus,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password select:focus,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password textarea:focus,
body.woocommerce-lost-password .woocommerce form.lost_reset_password input:focus,
body.woocommerce-lost-password .woocommerce form.lost_reset_password select:focus,
body.woocommerce-lost-password .woocommerce form.lost_reset_password textarea:focus {
    outline: none;
    border: 0 !important;
    box-shadow: 0 0 0 3px rgba(232, 79, 35, 0.14), inset 0 0 0 1px rgba(62, 65, 72, 0.22);
}

body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password button,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password .button,
body.woocommerce-lost-password .woocommerce form.lost_reset_password button,
body.woocommerce-lost-password .woocommerce form.lost_reset_password .button {
    min-height: 40px;
    border: 0;
    border-radius: 999px;
    padding: 8px 18px;
    background: var(--red);
    color: #fff;
    font-weight: 700;
    cursor: pointer;
}

body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password button:hover,
body.woocommerce-lost-password form.woocommerce-ResetPassword.lost_reset_password .button:hover,
body.woocommerce-lost-password .woocommerce form.lost_reset_password button:hover,
body.woocommerce-lost-password .woocommerce form.lost_reset_password .button:hover {
    background: var(--gray);
}

/* /registrera – AFWC form fixar */
#afwc_registration_form,
.afwc_reg_form_wrapper {
    width: 100%;
    max-width: 560px;
    margin: 0 auto !important;
}

.kof-half-row {
    display: flex;
    gap: 16px;
    margin-bottom: 12px;
}

.kof-half-row .afwc_reg_field_wrapper {
    flex: 1 1 0;
    min-width: 0;
    margin-bottom: 0;
}

/* Native AFWC half-width field pairs (e.g. password + confirm password) */
#afwc_registration_form .afwc_reg_field_wrapper.afwc_is_half,
.afwc_reg_form_wrapper .afwc_reg_field_wrapper.afwc_is_half {
    width: calc(50% - 8px);
    display: inline-block;
    vertical-align: top;
    margin-right: 16px;
}

#afwc_registration_form .afwc_reg_field_wrapper.afwc_is_half + .afwc_reg_field_wrapper.afwc_is_half,
.afwc_reg_form_wrapper .afwc_reg_field_wrapper.afwc_is_half + .afwc_reg_field_wrapper.afwc_is_half {
    margin-right: 0;
}

#afwc_registration_form .afwc_reg_terms,
.afwc_reg_form_wrapper .afwc_reg_terms {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

#afwc_registration_form .afwc_reg_terms input[type="checkbox"],
.afwc_reg_form_wrapper .afwc_reg_terms input[type="checkbox"],
#afwc_registration_form input[type="checkbox"],
.afwc_reg_form_wrapper input[type="checkbox"] {
    width: 16px !important;
    height: 16px !important;
    min-width: 16px;
    min-height: 16px;
    margin: 0;
    transform: none;
    vertical-align: middle;
}

#afwc_registration_form .afwc_reg_terms label,
.afwc_reg_form_wrapper .afwc_reg_terms label {
    margin: 0;
    display: inline;
    font-weight: 600;
    line-height: 1.4;
    padding-left: 2px;
}

#afwc_registration_form .afwc_reg_form_field,
#afwc_registration_form input:not([type="checkbox"]),
#afwc_registration_form select,
#afwc_registration_form textarea,
.afwc_reg_form_wrapper .afwc_reg_form_field,
.afwc_reg_form_wrapper input:not([type="checkbox"]),
.afwc_reg_form_wrapper select,
.afwc_reg_form_wrapper textarea {
    min-height: 36px;
    padding: 6px 10px;
}

#afwc_registration_form_submit,
#afwc_registration_form button[type="submit"],
#afwc_registration_form .button[type="submit"],
.afwc_reg_form_wrapper #afwc_registration_form_submit,
.afwc_reg_form_wrapper button[type="submit"],
.afwc_reg_form_wrapper .button[type="submit"] {
    min-height: 42px;
    border: 0 !important;
    border-radius: 999px !important;
    padding: 10px 18px;
    background: var(--red) !important;
    color: #fff !important;
    font-weight: 700;
    line-height: 1.2;
    cursor: pointer;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 18px rgba(62, 65, 72, 0.12);
}

#afwc_registration_form_submit:hover,
#afwc_registration_form button[type="submit"]:hover,
#afwc_registration_form .button[type="submit"]:hover,
.afwc_reg_form_wrapper #afwc_registration_form_submit:hover,
.afwc_reg_form_wrapper button[type="submit"]:hover,
.afwc_reg_form_wrapper .button[type="submit"]:hover {
    background: var(--gray) !important;
}

label[for="kof_affiliate_is_club_admin"],
label[for="afwc_reg_terms"] {
    display: flex !important;
    align-items: center !important;
    gap: 0.5em;
}

input#afwc_registration_form_submit {
    padding: 13px 0 !important;
}

/* Mobil */
@media (max-width: 980px) {
    .woocommerce-account .woocommerce {
        grid-template-columns: 1fr;
    }

    .woocommerce-account .woocommerce-MyAccount-navigation,
    .woocommerce-account .woocommerce-MyAccount-content {
        width: 100%;
        float: none;
    }

    .woocommerce-account .woocommerce-MyAccount-content {
        padding: 20px;
    }

    .woocommerce-account .afwc-kpi-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .woocommerce-account .afwc-affiliate-details-card {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .woocommerce-account .afwc-display-name {
        font-size: 24px;
    }

    .woocommerce-account .nav-tab-wrapper .nav-tab {
        width: 100%;
        justify-content: center;
    }

    .woocommerce-account table.afwc-reports thead {
        display: none;
    }

    .woocommerce-account table.afwc-reports,
    .woocommerce-account table.afwc-reports tbody,
    .woocommerce-account table.afwc-reports tr,
    .woocommerce-account table.afwc-reports td {
        display: block;
        width: 100%;
    }

    .kof-half-row {
        flex-direction: column;
        gap: 0;
    }
}

/* ===== Brand settings card (Min försäljning) ===== */

.kof-brand-settings-card h4 {
    font-size: 16px;
    font-weight: 700;
    color: var(--gray);
}

.kof-brand-fields {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.kof-brand-field {
    flex: 1 1 160px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.kof-brand-field label {
    font-size: 14px;
    font-weight: 600;
    color: var(--gray);
}

.kof-brand-color-input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--form-border);
    border-radius: 8px;
    padding: 4px 6px;
    background: #fff;
    cursor: pointer;
    box-sizing: border-box;
}

.kof-brand-logo-current {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 4px;
}

.kof-brand-logo-preview {
    width: 44px;
    height: 44px;
    object-fit: contain;
    border: 1px solid var(--form-border);
    border-radius: 8px;
    background: #fff;
    flex-shrink: 0;
}

.kof-brand-logo-hint {
    font-size: 12px;
    color: #667085;
}

.kof-brand-logo-input {
    font-size: 13px;
    color: var(--gray);
}

.kof-submit-brand {
    min-height: 40px !important;
    border-radius: 999px !important;
    border: 0 !important;
    background: var(--red) !important;
    color: #fff !important;
    font-weight: 700 !important;
    padding: 0 20px !important;
    cursor: pointer;
    font-size: 14px;
}

.kof-submit-brand:hover {
    background: var(--gray) !important;
}

.kof-submit-brand:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.kof-brand-message {
    margin-top: 12px;
    padding: 8px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
}

.kof-brand-message--success {
    background: rgba(147, 181, 61, 0.12);
    color: #3a6400;
    border: 1px solid rgba(147, 181, 61, 0.45);
}

.kof-brand-message--error {
    background: rgba(232, 79, 35, 0.08);
    color: #b83000;
    border: 1px solid rgba(232, 79, 35, 0.3);
}
