/* Zendrop Profit Calculator Widget */

.zendrop-profit-calculator-container {
    width: 100%;
    font-family: 'Inter', sans-serif;
}

/* ── Layout ─────────────────────────────────── */
.zpc-inner {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

/* ── Form Group ─────────────────────────────── */
.zpc-form-group {
    flex-shrink: 0;
    width: 665px;
    max-width: 100%;
}

.zpc-form-wrapper {
    background-color: #f7f8fb;
    border: 1px solid #6861f2;
    border-radius: 22px;
    padding: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* ── Fields ─────────────────────────────────── */
.zpc-fields {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.zpc-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.zpc-label-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.zpc-label {
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.32px;
    color: #212240;
    white-space: nowrap;
}

/* Tooltip */
.zpc-tooltip-wrap {
    position: relative;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.zpc-info-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.zpc-tooltip-text {
    display: none;
    position: absolute;
    left: 50%;
    bottom: calc(100% + 6px);
    transform: translateX(-50%);
    background: #212240;
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    padding: 6px 10px;
    border-radius: 6px;
    white-space: normal;
    width: 200px;
    z-index: 10;
    pointer-events: none;
}

.zpc-tooltip-wrap:hover .zpc-tooltip-text,
.zpc-tooltip-wrap:focus-within .zpc-tooltip-text {
    display: block;
}

/* Input */
.zpc-input {
    width: 100%;
    height: 38px;
    background: #fff;
    border: 1px solid #d7d8e3;
    border-radius: 4px;
    padding: 0 16px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.32px;
    color: #212240;
    outline: none;
    box-sizing: border-box;
    -moz-appearance: textfield;
    transition: border-color 0.2s ease;
}

.zpc-input::placeholder {
    color: #818390;
}

.zpc-input::-webkit-outer-spin-button,
.zpc-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.zpc-input:focus {
    border-color: #6861f2;
}

/* ── Actions ─────────────────────────────────── */
.zpc-actions {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.zendrop-profit-calculator-container .zpc-btn-calculate,
.zendrop-profit-calculator-container .zpc-btn-reset {
    width: 100%;
    height: 52px;
    border-radius: 12px;
    font-family: 'Inter', sans-serif;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: -0.32px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: opacity 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
    padding: 14px 24px;
    box-sizing: border-box;
    text-decoration: none;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.zendrop-profit-calculator-container .zpc-btn-calculate {
    background-color: #5952e1;
    color: #fff;
    border: none;
}

.zendrop-profit-calculator-container .zpc-btn-calculate:hover {
    background-color: #4a43d4;
}

.zendrop-profit-calculator-container .zpc-btn-reset {
    background-color: transparent;
    color: #2e2f39;
    border: 1px solid #d8d9e3;
}

.zendrop-profit-calculator-container .zpc-btn-reset:hover {
    background-color: #f0f0f5;
}

.zpc-reset-icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ── Stats Grid ─────────────────────────────── */
.zpc-stats {
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    align-content: flex-start;
}

.zpc-stat {
    position: relative;
    width: auto;
    border: 0.875px solid #d8d9e3;
    border-radius: 20px;
    padding: 40px 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    text-align: center;
    overflow: hidden;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

.zpc-stat-value {
    font-family: 'General Sans', sans-serif;
    font-size: 48px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.96px;
    color: #030303;
    white-space: nowrap;
}

.zpc-stat-text {
    font-family: 'Inter', sans-serif;
    font-size: 20px;
    font-weight: 400;
    line-height: 1.4;
    letter-spacing: -0.4px;
    color: #2e2f39;
}

/* Share card */
.zpc-stat-share {
    background-color: #f7f8fb;
    border-color: transparent;
    cursor: pointer;
}

.zpc-stat-share:hover {
    border-color: #d8d9e3;
}

.zpc-share-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
}

/* Copied feedback */
.zpc-copied-msg {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: #5952e1;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.zpc-stat-share.zpc-copied .zpc-copied-msg {
    opacity: 1;
}

/* ── Responsive — Tablet ─────────────────────── */
@media (max-width: 1024px) {
    .zpc-inner {
        flex-direction: column;
    }

    .zpc-form-group {
        width: 100%;
    }

    .zpc-stats {
        width: 100%;
    }

    .zpc-stat {
        width: auto;
        padding: 20px 16px;
    }

    .zpc-stat-value {
        font-size: 32px;
        line-height: 1.2;
        letter-spacing: -0.64px;
    }

    .zpc-stat-text {
        font-size: 18px;
        letter-spacing: -0.36px;
    }

    .zpc-share-icon {
        width: 38px;
        height: 38px;
    }
}

/* ── Responsive — Mobile ─────────────────────── */
@media (max-width: 767px) {
    .zpc-form-wrapper {
        padding: 40px 25px;
    }

    .zpc-label {
        white-space: normal;
    }

    .zpc-stat {
        min-width: calc(50% - 6px);
    }

    .zpc-tooltip-text--left {
        left: auto;
        right: 0;
        transform: none;
    }
}
