/* ============================================
   WooCommerce Hosting Provider – Productpagina
   ============================================ */

.wchp-domain-widget {
    background: #f8f9ff;
    border: 2px solid #d0d7ff;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    font-family: inherit;
}

/* Header */
.wchp-widget-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.wchp-widget-icon {
    font-size: 22px;
    line-height: 1;
}

.wchp-widget-title {
    font-size: 17px;
    font-weight: 700;
    color: #1a1a2e;
}

/* Mode tabs */
.wchp-mode-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 18px;
    border-bottom: 2px solid #e0e4f0;
    padding-bottom: 0;
}

.wchp-tab {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #555;
    border-radius: 6px 6px 0 0;
    transition: all .2s;
}

.wchp-tab:hover {
    background: #eef0ff;
    color: #2d3a8c;
}

.wchp-tab--active {
    border-bottom-color: #4254d4;
    color: #4254d4;
    font-weight: 700;
    background: #eef0ff;
}

/* Panels */
.wchp-panel {
    display: none;
}

.wchp-panel--active {
    display: block;
}

/* Zoekregel */
.wchp-search-row {
    display: flex;
    gap: 10px;
    align-items: stretch;
    flex-wrap: wrap;
}

.wchp-search-input-wrap {
    display: flex;
    flex: 1;
    min-width: 200px;
    border: 1.5px solid #c5ccee;
    border-radius: 7px;
    overflow: hidden;
    background: #fff;
    transition: border-color .2s;
}

.wchp-search-input-wrap:focus-within {
    border-color: #4254d4;
    box-shadow: 0 0 0 3px rgba(66,84,212,.12);
}

.wchp-search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    padding: 11px 14px;
    font-size: 15px;
    background: transparent;
    min-width: 0;
}

.wchp-tld-wrap {
    position: relative;
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    border-left: 1.5px solid #e0e4f0;
}

.wchp-tld-select {
    flex: 0 0 auto !important;
    width: auto !important;
    min-width: 74px;
    max-width: 110px;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background-color: #f4f6ff;
    padding: 0 22px 0 10px;
    font-size: 14px;
    font-weight: 600;
    color: #4254d4;
    cursor: pointer;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* Pijltje als los laagje bovenop de select getekend (i.p.v. als
   select-background-image), zodat het niet kan botsen met CSS-resets
   van het thema die op <select>-elementen zelf een background forceren. */
.wchp-tld-arrow {
    position: absolute;
    right: 8px;
    top: 50%;
    width: 10px;
    height: 7px;
    margin-top: -3px;
    pointer-events: none;
    background-color: #4254d4;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23000' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-position: center;
    mask-position: center;
}

/* Als er maar één TLD-optie is, valt er niets te kiezen: geen pijltje en
   geen klik-cursor tonen, dat voorkomt verwarring. */
.wchp-tld-wrap--single .wchp-tld-arrow {
    display: none;
}
.wchp-tld-wrap--single .wchp-tld-select {
    cursor: default;
    padding-right: 10px;
}

.wchp-check-btn {
    background: #4254d4 !important;
    color: #fff !important;
    border: none !important;
    border-radius: 7px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer;
    transition: background .2s !important;
    white-space: nowrap;
    min-height: 46px;
}

.wchp-check-btn:hover {
    background: #3444b8 !important;
}

.wchp-check-btn:disabled {
    background: #9aa3d8 !important;
    cursor: not-allowed;
}

/* Resultaat */
.wchp-check-result {
    margin-top: 12px;
    padding: 12px 16px;
    border-radius: 7px;
    font-size: 14px;
    font-weight: 500;
}

.wchp-result--checking {
    background: #f0f4ff;
    color: #4254d4;
}

.wchp-result--available {
    background: #edfbf0;
    color: #1a7535;
    border: 1px solid #a3ddb0;
}

.wchp-result--unavailable {
    background: #fff4f4;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

.wchp-result--error {
    background: #fff8e1;
    color: #92400e;
    border: 1px solid #fcd34d;
}

/* Bevestigingsbalk */
.wchp-available-actions {
    margin-top: 14px;
}

.wchp-domain-confirmed {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #edfbf0;
    border: 1.5px solid #6ee7a0;
    border-radius: 7px;
    padding: 12px 16px;
    flex-wrap: wrap;
}

.wchp-confirmed-icon {
    font-size: 18px;
}

.wchp-confirmed-name {
    font-weight: 700;
    font-size: 15px;
    color: #1a7535;
}

.wchp-confirmed-label {
    color: #2d6a4f;
    font-size: 13px;
}

.wchp-link-btn {
    background: none;
    border: none;
    color: #4254d4;
    cursor: pointer;
    font-size: 13px;
    text-decoration: underline;
    padding: 0;
    margin-left: auto;
}

/* Transfer velden */
.wchp-transfer-info {
    background: #fff8e1;
    border: 1px solid #fcd34d;
    border-radius: 7px;
    padding: 12px 16px;
    margin-bottom: 18px;
    color: #78350f;
    font-size: 13px;
}

.wchp-transfer-info p {
    margin: 0;
}

.wchp-transfer-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.wchp-field-group {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.wchp-label {
    font-size: 13px;
    font-weight: 600;
    color: #374151;
}

.wchp-input {
    border: 1.5px solid #c5ccee !important;
    border-radius: 7px !important;
    padding: 11px 14px !important;
    font-size: 15px !important;
    outline: none !important;
    box-shadow: none !important;
    transition: border-color .2s !important;
    background: #fff !important;
    width: 100% !important;
    box-sizing: border-box;
}

.wchp-input:focus {
    border-color: #4254d4 !important;
    box-shadow: 0 0 0 3px rgba(66,84,212,.12) !important;
}

.wchp-input--mono {
    font-family: 'Courier New', Courier, monospace !important;
    letter-spacing: .05em;
}

.wchp-field-hint {
    font-size: 12px;
    color: #6b7280;
    margin: 2px 0 0;
}

.wchp-transfer-validated {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #edfbf0;
    border: 1.5px solid #6ee7a0;
    border-radius: 7px;
    padding: 12px 16px;
    font-weight: 600;
    color: #1a7535;
}

/* Melding onderaan widget */
.wchp-widget-notice {
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 7px;
    font-size: 13px;
    font-weight: 500;
    background: #fff4f4;
    color: #b91c1c;
    border: 1px solid #fca5a5;
}

/* Add-to-cart knop geblokkeerd totdat domein gekozen */
.wchp-atc-blocked .single_add_to_cart_button {
    opacity: .45;
    pointer-events: none;
    cursor: not-allowed;
}

/* Responsief */
@media (max-width: 600px) {
    .wchp-search-row  { flex-direction: column; }
    .wchp-check-btn   { width: 100%; justify-content: center; }
    .wchp-mode-tabs   { flex-direction: column; border-bottom: none; gap: 4px; }
    .wchp-tab         { border-bottom: none; border-radius: 6px; border: 1.5px solid #e0e4f0; }
    .wchp-tab--active { border-color: #4254d4; }
}
