/**
 * First King - account pages (registration + preferences + build features).
 */

.fk-account-intro {
    color: #64748b;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 28px;
    max-width: 640px;
}

.fk-account-preferences fieldset,
.fk-pref-set,
.fk-privacy-section,
.fk-gift-create {
    border: 0;
    padding: 0;
    margin: 0 0 30px;
}

.fk-account-preferences legend,
.fk-pref-set legend,
.fk-privacy-section legend,
.fk-gift-create legend {
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 14px;
    padding: 0;
}

.fk-account-preferences .fk-account-grid,
.fk-pref-set .fk-account-grid,
.fk-gift-create .fk-account-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 18px;
}

.fk-account-preferences .fk-account-hint,
.fk-account-hint {
    color: #94a3b8;
    font-size: 12.5px;
    margin: -6px 0 14px;
    line-height: 1.5;
}

.fk-account-preferences .fk-account-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 22px;
}

.fk-account-preferences .fk-account-checks label.checkbox,
.fk-account-preferences .fk-consent-row {
    display: inline-flex;
    align-items: flex-start;
    gap: 9px;
    font-size: 13.5px;
    line-height: 1.5;
    color: #334155;
    margin: 0;
    cursor: pointer;
}

.fk-account-preferences .fk-consent-row {
    max-width: 560px;
}

.fk-account-preferences input[type="checkbox"] {
    margin-top: 2px;
    flex: 0 0 auto;
}

/* Registration form: marketing consent stays visually separate. */
.fk-consent-row {
    margin: 6px 0 18px !important;
}

.fk-consent-row span {
    font-size: 13px;
    line-height: 1.5;
}

.fk-consent-row .required {
    color: #e11d48;
}

/* ---- shared bits ---- */

.fk-inline-form {
    display: inline-flex;
    align-items: center;
    margin: 0;
}

.fk-link-button {
    background: none;
    border: 0;
    padding: 0;
    color: #be123c;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.fk-link-button:hover {
    color: #881337;
}

.fk-badge {
    display: inline-block;
    padding: 3px 10px;
    border-radius: 999px;
    background: #f1f5f9;
    color: #64748b;
    font-size: 12px;
    font-weight: 600;
}

.fk-badge-on {
    background: #ecfdf5;
    color: #047857;
}

/* ---- saved discovery results ---- */

.fk-saved-results {
    display: grid;
    gap: 18px;
}

.fk-saved-result {
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 18px 20px;
    background: #fff;
}

.fk-saved-result-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 14px;
}

.fk-saved-result-title {
    margin: 0 0 4px;
    font-size: 15px;
    font-weight: 700;
    color: #0f172a;
}

.fk-saved-result-meta {
    margin: 0;
    font-size: 12.5px;
    color: #94a3b8;
}

.fk-pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 14px 0 0;
    padding: 0;
    list-style: none;
}

.fk-pill {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    padding: 4px 12px;
    font-size: 12px;
    color: #334155;
}

.fk-pill strong {
    font-weight: 600;
    color: #0f172a;
}

.fk-clear-results {
    margin-top: 18px;
}

/* ---- product mini rows ---- */

.fk-mini-products {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 12px;
    list-style: none;
    margin: 14px 0 0;
    padding: 0;
}

.fk-mini-product {
    display: flex;
    gap: 10px;
    align-items: center;
    position: relative;
}

.fk-mini-product-thumb img {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.fk-mini-product-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.fk-mini-product-title {
    font-size: 13px;
    font-weight: 600;
    color: #0f172a;
    line-height: 1.35;
    text-decoration: none;
}

.fk-mini-product-title:hover {
    color: #be123c;
}

.fk-mini-product-price {
    font-size: 12.5px;
    color: #64748b;
}

.fk-mini-product .fk-inline-form {
    position: absolute;
    right: 0;
    bottom: 0;
}

/* ---- gift lists ---- */

.fk-gift-lists {
    list-style: none;
    margin: 0 0 26px;
    padding: 0;
    display: grid;
    gap: 10px;
}

.fk-gift-list {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 12px 16px;
}

.fk-gift-list-link {
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-decoration: none;
}

.fk-gift-list-name {
    font-size: 14px;
    font-weight: 600;
    color: #0f172a;
}

.fk-gift-list-meta {
    font-size: 12.5px;
    color: #94a3b8;
}

.fk-gift-detail-title {
    font-size: 20px;
    margin: 0 0 16px;
    color: #0f172a;
}

.fk-back-link {
    margin: 0 0 10px;
    font-size: 13px;
}

.fk-gift-form .button {
    margin-top: 6px;
}

/* ---- wishlist sharing ---- */

.fk-share-box {
    max-width: 640px;
    margin-top: 30px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.fk-share-heading {
    margin: 0 0 6px;
    font-size: 17px;
}

.fk-share-description {
    margin: 0 0 14px;
    color: #64748b;
    font-size: 13px;
    line-height: 1.55;
}

.fk-share-status {
    margin: 0 0 14px;
}

.fk-share-social {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    margin: 14px 0;
}

.fk-share-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #f1f5f9;
    color: #334155;
    text-decoration: none;
    cursor: pointer;
}

.fk-share-icon:hover,
.fk-share-icon:focus-visible {
    background: #334155;
    color: #fff;
}

.fk-share-icon:focus-visible {
    outline: 2px solid #334155;
    outline-offset: 2px;
}

.fk-share-box .fk-share-icon svg {
    display: block;
    width: 19px !important;
    height: 19px !important;
    max-width: none !important;
    fill: currentColor;
    flex: 0 0 auto;
}

.fk-share-copy svg {
    fill: none !important;
    stroke: currentColor !important;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.fk-share-icon.fk-share-copy {
    appearance: none;
    -webkit-appearance: none;
    font: inherit;
}

.fk-share-icon.fk-share-copy.is-copied {
    color: #15803d;
}

.fk-share-copy-feedback {
    color: #15803d;
    font-size: 12px;
}

.fk-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    align-items: center;
    margin-top: 16px;
}

/* ---- privacy ---- */

.fk-privacy-section legend {
    color: #0f172a;
}

.fk-privacy-danger {
    border-top: 1px solid #fecdd3;
    padding-top: 22px;
}

.fk-privacy-danger legend {
    color: #be123c;
}

.fk-danger-button {
    background: #be123c !important;
    border-color: #be123c !important;
    color: #fff !important;
}

.fk-danger-button:hover {
    background: #881337 !important;
}

.fk-privacy-form .form-row {
    max-width: 320px;
}

/* ---- public shared wishlist ---- */

.fk-shared-wishlist {
    /* Same width as the Wishlist page content, so the shared grid keeps the
       same column rhythm as the signed-in wishlist. */
    max-width: 1140px;
    margin: 0 auto;
    padding: 10px 0 40px;
}

.fk-shared-note {
    margin: 0 0 18px;
    color: #94a3b8;
    font-size: 13px;
    text-align: center;
}

.fk-shared-wishlist .fk-wishlist-tabs-wrapper {
    margin-top: 0;
}

/* Shared wishlist cards: mirror the signed-in wishlist grids (read only). */
.fk-share-product {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.fk-share-product .wd-product-thumb {
    overflow: hidden;
    border-radius: 10px;
    background: #f7f7f5;
}

.fk-share-product .wd-product-thumb img {
    display: block;
    width: 100%;
    height: auto;
    margin: 0;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    transition: transform 0.4s ease;
}

.fk-share-product:hover .wd-product-thumb img {
    transform: scale(1.04);
}

.fk-share-product .product-information {
    padding-top: 14px;
    text-align: center;
}

.fk-share-product .wd-entities-title {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.35;
}

.fk-share-product .wd-entities-title a {
    color: #0f172a;
    text-decoration: none;
}

.fk-share-product .wd-entities-title a:hover {
    color: #be123c;
}

.fk-share-product .wd-product-cats {
    margin-bottom: 6px;
    color: #94a3b8;
    font-size: 12.5px;
    line-height: 1.4;
}

.fk-share-product .wd-product-cats a {
    color: inherit;
    text-decoration: none;
}

.fk-share-product .wd-product-cats a:hover {
    color: #be123c;
}

.fk-share-product .price {
    font-size: 14px;
    font-weight: 700;
    color: #0f172a;
}

.fk-share-invalid {
    max-width: 640px;
    margin: 0 auto;
    text-align: center;
    padding: 40px 0;
}

/* ---- product page gift list control ---- */

.fk-gift-add {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin: 16px 0 0;
    padding: 12px 14px;
    border: 1px dashed #e2e8f0;
    border-radius: 10px;
}

.fk-gift-add label {
    font-size: 13px;
    font-weight: 600;
    color: #334155;
    margin: 0;
}

.fk-gift-add select {
    max-width: 220px;
}

@media (max-width: 600px) {
    .fk-account-preferences .fk-account-grid,
    .fk-pref-set .fk-account-grid,
    .fk-gift-create .fk-account-grid {
        grid-template-columns: 1fr;
    }

    .fk-mini-products {
        grid-template-columns: 1fr;
    }
}
