.calculator-wrapper,
.calculator-wrapper *,
.calculator-wrapper *::before,
.calculator-wrapper *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    border: none;
    background: none;
    outline: none;
    list-style: none;
    text-decoration: none;
    font-size: 14px;
    line-height: 1.4;
    color: #333;
    text-align: left;
}

.calculator-wrapper input,
.calculator-wrapper select,
.calculator-wrapper button {
    font-family: inherit;
    font-size: inherit;
    color: inherit;
}

.calculator-wrapper input:focus,
.calculator-wrapper select:focus,
.calculator-wrapper button:focus {
    outline: 2px solid #007bff;
}

.calculator-wrapper {
    display: flex;
    gap: 20px;
    max-width: 1000px;
    margin: 20px auto;
    align-items: flex-start;
}

.calculator-main {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background: white;
    width: 1000px;
}

.calculator-format-selector {
    position: relative;
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.calculator-format-selector-marker {
    position: absolute;
    bottom: -2px;
    width: 45%
	left: 10%;
    height: 2px;
    background-color: #0073e6;
    border-radius: 6px;
    transition: all 0.3s ease;
    margin-left: 10px;
    transform-origin: left center;
    transform: translateX(-9px);
}

.format-selector-option input[type="radio"] {
    display: none;
}

.format-selector-option {
    cursor: pointer;
    display: flex;
    align-items: center;
	justify-content: center;
    gap: 10px;
	background: #f2f2f2;
    padding: 8px 14px;
    border-radius: 6px;
    transition: 0.25s;
    user-select: none;
	position: relative;
	overflow: hidden;
	width: 50%;
}

.format-selector-option input {
    accent-color: #0073e6;
    width: 16px;
    height: 16px;
}

.format-selector-option.active {
	background: #f2f2f2;
    color: #fff;
}

.calculator-dropdown-container {
    position: relative;
    width: 100%;
}

.calculator-dropdown-toggle {
    width: 100%;
    padding: 12px;
	margin-top: 6px;
    margin-bottom: 6px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background: white;
    cursor: pointer;
    font-size: 15px;
    position: relative;
}

.calculator-dropdown-toggle::after {
    content: '\25BC';
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 12px;
}

.calculator-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    z-index: 1000;
    max-height: 200px;
    overflow-y: auto;
    display: none;
}

.calculator-dropdown-menu.show {
    display: block;
}

.calculator-dropdown-item {
    padding: 10px 12px;
    cursor: pointer;
    border-bottom: 1px solid #eee;
    font-size: 14px;
}

.calculator-dropdown-item:hover {
    background-color: #f5f5f5;
}

.calculator-dropdown-item:last-child {
    border-bottom: none;
}

.calculator-amount-input {
    position: relative;
}

.calculator-amount-input input {
    padding: 10px 30px 10px 10px;
    width: 100%;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.calculator-currency {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}

.calculator-content-section {
    display: none;
}

.calculator-content-section.active {
    display: block;
}

.calculator-bets-section {
    margin: 20px 0;
}

.calculator-bets-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.calculator-fees-section {
    margin-bottom: 15px;
}

.calculator-bets-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calculator-bet-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.calculator-bet-number {
    width: 25px;
    height: 25px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
}

.calculator-decimal-odds {
    width: 90px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 15px;
}

.calculator-fraction-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.calculator-fraction-numerator, 
.calculator-fraction-denominator {
    width: 60px;
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    text-align: center;
    font-size: 15px;
}

.calculator-fraction-separator {
    font-weight: bold;
}

.calculator-checkbox-container {
    display: block;
    position: relative;
    cursor: pointer;
    margin-left: auto;
}

.calculator-checkbox-container input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.calculator-checkmark {
    width: 22px;
    height: 22px;
    border: 2px solid #ccc;
    border-radius: 4px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.calculator-checkbox-container input:checked ~ .calculator-checkmark {
    background-color: #007bff;
    border-color: #007bff;
}

.calculator-checkbox-container input:checked ~ .calculator-checkmark::after {
    content: '\2713';
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.calculate-btn {
    width: 100%;
    padding: 14px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    margin-top: 20px;
    transition: background-color 0.3s;
    text-align: center;
    margin-bottom: 20px;
}

.calculate-btn:hover {
    background-color: #0056b3;
}

hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 20px 0;
}

.calculator-results-section {
    width: 320px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background-color: #f9f9f9;
    flex-shrink: 0;
}

.calculator-results-section h3 {
    margin-bottom: 15px;
    text-align: center;
    font-size: 18px;
}

.calculator-results-content {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.calculator-result-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.calculator-result-item:last-child {
    border-bottom: none;
}

.calculator-result-label {
    font-weight: bold;
    color: #555;
}

.calculator-result-value {
    color: #007bff;
    font-weight: bold;
}

/* adaptation */

/* (less 360px) */
@media (max-width: 360px) {
    .calculator-main {
        padding: 15px;
    }
    .calculator-results-section {
        padding: 15px;
    }
    .calculator-bet-item {
        padding: 8px;
    }
    .calculate-btn {
        padding: 12px;
    }
	.calculator-format-selector-marker {
        width: 40%;
        left: 8%;
        margin-left: 8px;
        transform: translateX(-6px);
        bottom: -1px;
    }
}

/* (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .calculator-wrapper {
        max-width: 90%;
        gap: 20px;
    }
    .calculator-main {
        padding: 18px;
    }
    .calculator-results-section {
        width: 280px;
        padding: 18px;
    }
	.calculator-format-selector-marker {
        width: 44%;
        left: 9%;
        margin-left: 12px;
        transform: translateX(-10px);
    }
}

/* (1024px - 1200px) */
@media (max-width: 1200px) and (min-width: 1025px) {
    .calculator-wrapper {
        max-width: 95%;
        gap: 25px;
    }
    .calculator-results-section {
        width: 300px;
    }
	 .calculator-format-selector-marker {
        width: 44%;
        left: 9%;
        margin-left: 12px;
        transform: translateX(-10px);
    }
}

/* (1200px+) */
@media (min-width: 1201px) {
    .calculator-wrapper {
        max-width: 1100px;
    }
    .calculator-results-section {
        width: 350px;
    }
	 .calculator-format-selector-marker {
        width: 46%;
        left: 11%;
        margin-left: 15px;
        transform: translateX(-12px);
    }
}